Function at 0x507350
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x94
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov ebp, dword [esp + 0xa0]
push esi
push edi
mov dword [esp + 0x18], 0
mov esi, dword [ebp + 8]
mov dword [esp + 0x24], esi
mov dword [esp + 0x34], 0
mov dword [esp + 0x1c], 0
test ebx, ebx
je case.0x5073d4.21
cmp dword [ebp + 0x48], 0
mov edi, dword [esp + 0xb0]
je 0x5073b8
test dword [ebx + 4], 0x800000
jne 0x5073b8
push edi
push ebx
push ebp
call fcn.00512750
add esp, 0xc
test eax, eax
jns 0x508292
movzx edx, byte [ebx]
mov dword [esp + 0x14], edx
lea eax, [edx - 0x13]
cmp eax, 0xa2
ja case.0x5073d4.21
movzx eax, byte [eax + 0x50831c]
jmp dword [eax*4 + 0x5082a0]
test dword [ebx + 4], 0x200
je 0x5073f0
mov ebx, dword [ebx + 0xc]
mov dword [esp + 0xac], ebx
jmp 0x507387
push edi
push dword [ebx + 0xc]
push ebp
call fcn.00505eb0
push edi
push 0xb3
push esi
call fcn.0052b3b0
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ecx, dword [ebx + 0x28]
movsx edx, word [ebx + 0x22]
cmp edx, dword [ecx + 0x18]
jl 0x507435
push edi
push 0
push 0x4b
push esi
call fcn.0052b410
add esp, 0x10
jmp 0x508235
mov eax, edx
shl eax, 4
add eax, dword [ecx + 0x14]
cmp byte [ecx], 0
mov dword [esp + 0x28], eax
jne 0x507456
mov eax, dword [ecx + 0xc]
pop edi
pop esi
pop ebp
add eax, edx
pop ebx
add esp, 0x94
ret
cmp byte [ecx + 1], 0
je 0x5074b7
mov ebx, dword [eax]
movsx eax, word [eax + 0xe]
push edi
push eax
push dword [ecx + 8]
push 0x5e
push esi
call fcn.0052b470
add esp, 0x14
test ebx, ebx
je 0x507d67
mov eax, dword [esp + 0x28]
movzx eax, word [eax + 0xc]
test ax, ax
js 0x507d67
movsx ecx, ax
mov eax, dword [ebx + 4]
add ecx, ecx
cmp byte [eax + ecx*8 + 8], 0x45
jne 0x507d67
push edi
push 0x57
push esi
call fcn.0052b3b0
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp dword [ebx + 0x2c], 0
jne case.0x5073d4.167
movsx eax, word [ebx + 0x20]
push edi
push eax
push dword [ebx + 0x1c]
push 0x5e
push esi
call fcn.0052b470
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
test byte [ebx + 4], 0x20
mov ecx, dword [ebx + 0x1c]
je 0x507532
push edi
push dword [ebx + 0xc]
push ebp
call fcn.00507350
mov edi, eax
movsx eax, word [ebx + 0x20]
push eax
push dword [ebx + 0x2c]
call fcn.00526da0
movsx eax, al
add esp, 0x14
cmp eax, 0x41
jle 0x507525
push 0xffffffffffffffff
lea eax, [eax*2 + 0x6e8c28]
push eax
push 0
push 1
push edi
push 0x60
push esi
call fcn.0052b4d0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
test ecx, ecx
jns 0x50760f
mov eax, dword [ebp + 0x34]
test eax, eax
jns 0x50760c
movzx edx, word [ebx + 0x20]
mov ecx, dword [ebx + 0x2c]
movsx ebx, dx
mov dword [esp + 0x28], ecx
test ebx, ebx
jns 0x507564
pop edi
pop esi
pop ebp
not eax
pop ebx
add esp, 0x94
ret
push edx
shl ebx, 4
add ebx, dword [ecx + 4]
push ecx
call fcn.00526e00
movzx ecx, word [ebx + 0xe]
add esp, 8
cwde
sub eax, dword [ebp + 0x34]
mov dword [esp + 0x20], eax
test cl, 0x60
je 0x5075df
test ecx, 0x100
je 0x5075aa
push dword [ebx]
push str.generated_column_loop_on___s_
push ebp
call fcn.00505000
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x94
ret
or ecx, 0x100
mov word [ebx + 0xe], cx
test cl, cl
jns 0x5075cb
push eax
push ebx
push dword [esp + 0x30]
push ebp
call fcn.00506140
mov eax, dword [esp + 0x30]
add esp, 0x10
pop edi
pop esi
mov ecx, 0xfe7f
and word [ebx + 0xe], cx
pop ebp
pop ebx
add esp, 0x94
ret
cmp byte [ebx + 8], 0x45
jne 0x508292
push edi
push eax
push 0x51
push esi
call fcn.0052b410
push edi
push 0x57
push esi
call fcn.0052b3b0
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
lea ecx, [eax - 1]
mov al, byte [ebx + 2]
push edi
mov byte [esp + 0x17], al
movsx eax, word [ebx + 0x20]
push eax
push ecx
push dword [ebx + 0x2c]
push dword [ebp + 8]
call fcn.00506290
mov cl, byte [esp + 0x27]
add esp, 0x14
test cl, cl
je 0x507d67
mov edx, dword [ebp + 8]
mov eax, dword [edx]
cmp byte [eax + 0x57], 0
je 0x507649
mov edx, 0x7937a8
jmp 0x50765c
mov eax, dword [edx + 0x6c]
mov edx, dword [edx + 0x68]
add edx, 0xffffffec
lea ecx, [eax + eax*4]
lea edx, [edx + ecx*4]
mov cl, byte [esp + 0x13]
mov al, byte [edx]
cmp al, 0x5e
je 0x50766d
cmp al, 0xaf
jne 0x507d67
and cl, 1
movzx eax, cl
mov word [edx + 2], ax
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push edi
push 0
push ebx
push ebp
call fcn.004ce4b0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push edi
push ebx
call fcn.0050a830
add esp, 4
push eax
push 0x47
push esi
call fcn.0052b410
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push edi
push 0
push dword [ebx + 8]
push esi
call fcn.004ce690
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push dword [ebx + 8]
push edi
push esi
call fcn.00535a90
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ecx, dword [ebx + 8]
add ecx, 2
jne 0x507700
xor esi, esi
jmp 0x507714
mov esi, ecx
lea edx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x507705
sub esi, edx
and esi, 0x3fffffff
mov ebx, dword [esp + 0x24]
dec esi
push esi
push ecx
push dword [ebx]
call fcn.005121b0
push 0xfffffffffffffffa
push eax
mov eax, esi
cdq
push 0
sub eax, edx
push edi
sar eax, 1
push eax
push 0x4d
push ebx
call fcn.0052b4d0
add esp, 0x28
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
movsx eax, word [ebx + 0x20]
push edi
push eax
push 0x4e
push esi
call fcn.0052b410
mov eax, dword [ebx + 8]
add esp, 0x10
cmp byte [eax + 1], 0
je 0x507d67
mov edx, dword [ebp + 0xe8]
test edx, edx
je 0x50778f
mov ebp, dword [edx + 4]
mov eax, 2
movsx ebx, word [ebx + 0x20]
nop dword [eax]
cmp dword [edx + eax*4], ebx
lea ecx, [edx + eax*4]
je 0x5077ac
add eax, dword [ecx + 4]
cmp eax, ebp
jl 0x507780
xor ecx, ecx
push 0xffffffffffffffff
push ecx
push esi
mov dword [edx], ecx
call fcn.0052b780
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
add ecx, 8
mov dword [edx], 0
push 0xffffffffffffffff
push ecx
push esi
call fcn.0052b780
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov eax, dword [ebx + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push edi
push dword [ebx + 0xc]
push ebp
call fcn.00505eb0
push 0
push dword [ebx + 8]
call fcn.004f7100
movsx eax, al
push eax
push edi
push 0x58
push esi
call fcn.0052b410
add esp, 0x24
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
xor eax, eax
mov dword [esp + 0x1c], 0x80
cmp edx, 0x2d
sete al
lea edx, [eax + 0x34]
mov dword [esp + 0x14], edx
mov eax, dword [ebx + 0xc]
push eax
mov dword [esp + 0x24], eax
call fcn.00509980
add esp, 4
test eax, eax
je 0x50784d
push dword [esp + 0x1c]
push edx
push edi
push ebx
push ebp
call fcn.004cedf0
add esp, 0x14
jmp 0x508235
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push ebp
call fcn.005083c0
mov dword [esp + 0x38], eax
lea eax, [esp + 0x40]
push eax
push dword [ebx + 0x10]
push ebp
call fcn.005083c0
push edi
push 1
push 0x47
push esi
mov dword [esp + 0x58], eax
call fcn.0052b410
mov eax, dword [ebx + 4]
shr eax, 0xa
and eax, 1
push eax
push dword [esp + 0x48]
mov eax, dword [esi + 0x6c]
add eax, 2
push eax
push dword [esp + 0x64]
push dword [esp + 0x64]
push dword [esp + 0x50]
push dword [ebx + 0x10]
push dword [esp + 0x64]
push ebp
call fcn.004cd890
add esp, 0x4c
cmp dword [esp + 0x1c], 0x80
jne 0x5078cb
push edi
push 0
push 0x47
push esi
call fcn.0052b410
add esp, 0x10
jmp 0x508235
push dword [esp + 0x30]
push edi
push dword [esp + 0x34]
push 0x5c
push esi
call fcn.0052b470
add esp, 0x14
jmp 0x508235
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0xc]
push ebp
call fcn.005083c0
mov esi, eax
lea eax, [esp + 0x40]
push eax
push dword [ebx + 0x10]
push ebp
call fcn.005083c0
push edi
push esi
push eax
push dword [esp + 0x38]
push dword [esp + 0x4c]
call fcn.0052b470
add esp, 0x2c
jmp 0x508235
mov eax, dword [ebx + 0xc]
mov cl, byte [eax]
cmp cl, 0x9b
jne 0x50793e
push edi
push 1
push eax
push ebp
call fcn.004ce4b0
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp cl, 0x99
jne 0x50795f
push edi
push 1
push dword [eax + 8]
push esi
call fcn.004ce690
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
lea eax, [esp + 0x18]
mov byte [esp + 0x70], 0x9b
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x78], 0x10800
push eax
push ebp
mov dword [esp + 0x84], 0
call fcn.005083c0
mov esi, eax
lea eax, [esp + 0x40]
push eax
push dword [ebx + 0xc]
push ebp
call fcn.005083c0
push edi
push esi
push eax
push 0x6b
push dword [esp + 0x4c]
call fcn.0052b470
add esp, 0x2c
jmp 0x508235
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0xc]
push ebp
call fcn.005083c0
push edi
push eax
push dword [esp + 0x28]
push esi
call fcn.0052b410
add esp, 0x1c
jmp 0x508235
lea eax, [esp + 0x18]
push eax
push dword [ebx + 0xc]
push ebp
call fcn.005083c0
push dword [ebx + 0x10]
mov edx, eax
call fcn.0050a830
mov ecx, eax
xor eax, eax
cmp byte [ebx + 2], 0x2d
sete al
xor eax, ecx
push eax
xor eax, eax
test ecx, ecx
sete al
push eax
push edi
push edx
push 0x5b
push esi
call fcn.0052b550
add esp, 0x28
jmp 0x508235
push edi
push 1
push 0x47
push esi
call fcn.0052b410
lea eax, [esp + 0x28]
push eax
push dword [ebx + 0xc]
push ebp
call fcn.005083c0
push eax
push dword [esp + 0x34]
push esi
call fcn.0052b3b0
mov ebx, dword [esp + 0x4c]
mov esi, eax
push edi
push 0
push 0x47
push ebx
call fcn.0052b410
push esi
push ebx
call fcn.00535820
add esp, 0x40
jmp 0x508235
mov ecx, dword [ebx + 0x28]
test ecx, ecx
je 0x507a7e
movzx eax, word [ebx + 0x22]
test ax, ax
js 0x507a7e
movsx edx, ax
cmp edx, dword [ecx + 0x24]
jge 0x507a7e
mov eax, dword [ecx + 0x18]
add eax, dword [ecx + 0xc]
pop edi
pop esi
pop ebp
add eax, edx
pop ebx
add esp, 0x94
ret
push ebx
push str.misuse_of_aggregate:__T__
push ebp
call fcn.00505000
add esp, 0xc
jmp 0x508235
test dword [ebx + 4], 0x1000000
mov ecx, dword [ebp]
mov dword [esp + 0x20], 0
mov dword [esp + 0x30], ecx
mov dword [esp + 0x28], 0
mov al, byte [ecx + 0x54]
mov byte [esp + 0x14], al
je 0x507aca
mov eax, dword [ebx + 0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0x38]
pop ebx
add esp, 0x94
ret
cmp byte [ebp + 0x17], 0
je 0x507af8
push ebx
call fcn.005097e0
add esp, 4
test eax, eax
je 0x507af4
push 0xffffffffffffffff
push ebx
push ebp
call fcn.00507170
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ecx, dword [esp + 0x30]
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x507b07
mov eax, dword [eax]
jmp 0x507b09
xor eax, eax
push 0
push dword [esp + 0x18]
mov dword [esp + 0x24], eax
push eax
push dword [ebx + 8]
push ecx
call fcn.0050aaf0
add esp, 0x14
mov dword [esp + 0x14], eax
test eax, eax
je 0x507d74
cmp dword [eax + 0x14], 0
jne 0x507d74
mov edx, dword [eax + 4]
test edx, 0x400000
je 0x507b62
mov ecx, dword [esp + 0x2c]
test ecx, ecx
je 0x507b62
push edi
push dword [eax + 8]
push ecx
push ebp
call fcn.004d5450
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
test edx, 0x280000
je 0x507b75
push eax
push ebx
push ebp
call fcn.00508e00
add esp, 0xc
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x18], eax
test ecx, ecx
jle 0x507c3f
mov edx, dword [esp + 0x2c]
xor esi, esi
mov edi, dword [esp + 0x14]
add edx, 8
mov dword [esp + 0x34], edx
xor ebx, ebx
nop word [eax + eax]
cmp eax, 0x20
jae 0x507bea
mov ecx, dword [edx]
mov edx, 1
mov word [esp + 0x50], dx
mov dword [esp + 0x40], fcn.004d6870
mov dword [esp + 0x44], 0x524e20
mov dword [esp + 0x54], 0
test ecx, ecx
je 0x507be7
push ecx
lea eax, [esp + 0x40]
push eax
call fcn.00539e50
mov eax, dword [esp + 0x20]
add esp, 8
cmp word [esp + 0x50], 0
je 0x507bea
bts esi, eax
test byte [edi + 4], 0x20
je 0x507c09
test ebx, ebx
jne 0x507c09
mov eax, dword [esp + 0x34]
push dword [eax]
push ebp
call fcn.00508540
mov ebx, eax
add esp, 8
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x34]
inc eax
mov ecx, dword [esp + 0x1c]
add edx, 0x14
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edx
cmp eax, ecx
jl 0x507ba0
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x28], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x24]
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x507cc6
cmp dword [esp + 0x20], 0
je 0x507c6a
mov eax, dword [ebp + 0x2c]
lea edi, [eax + 1]
add eax, ecx
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0xb0]
mov ecx, dword [esp + 0x18]
mov dword [ebp + 0x2c], eax
jmp 0x507c7e
push ecx
push ebp
call fcn.00511250
mov edx, dword [esp + 0x34]
mov ecx, eax
add esp, 8
mov dword [esp + 0x18], ecx
mov eax, dword [esp + 0x14]
mov eax, dword [eax + 4]
test al, 0xc0
je 0x507cb1
mov ebx, dword [edx + 8]
mov bl, byte [ebx]
mov byte [esp + 0x13], bl
cmp bl, 0xa7
mov ebx, dword [esp + 0xac]
je 0x507ca5
cmp byte [esp + 0x13], 0xa9
jne 0x507cb1
mov esi, dword [edx + 8]
and al, 0xc0
mov byte [esi + 2], al
mov esi, dword [esp + 0x24]
push 2
push 0
push ecx
push edx
push ebp
call fcn.00505f20
mov edx, dword [esp + 0x40]
add esp, 0x14
jmp 0x507cce
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x1c]
cmp eax, 2
jl 0x507cfa
test dword [ebx + 4], 0x100
je 0x507cfe
push dword [edx + 0x1c]
push eax
push dword [esp + 0x1c]
push dword [esp + 0x3c]
call fcn.005395e0
add esp, 0x10
mov dword [esp + 0x14], eax
jmp 0x507d07
test eax, eax
jle 0x507d03
push dword [edx + 8]
jmp 0x507ce3
mov eax, dword [esp + 0x14]
test byte [eax + 4], 0x20
je 0x507d30
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x507d1c
mov eax, dword [esp + 0x30]
mov eax, dword [eax + 8]
push 0xfffffffffffffffe
push eax
push 0
push 0
push 0
push 0x55
push esi
call fcn.0052b4d0
add esp, 0x1c
movzx eax, byte [ebx + 2]
mov esi, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
push eax
push dword [esp + 0x18]
push esi
push edi
push dword [esp + 0x28]
push ebx
push ebp
call fcn.0052b2a0
add esp, 0x1c
test esi, esi
je 0x507d67
test ebx, ebx
jne 0x507d67
push esi
push dword [esp + 0x1c]
push ebp
call fcn.0051fa10
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push ebx
push str.unknown_function:__T__
push ebp
call fcn.00505000
add esp, 0xc
jmp 0x508235
mov eax, dword [ebp]
cmp byte [eax + 0x57], 0
jne 0x50759d
cmp edx, 0x8a
jne 0x507dc4
test dword [ebx + 4], 0x1000
je 0x507dc4
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
cmp eax, 1
je 0x507dc4
push 1
push eax
push ebp
call fcn.00526bd0
add esp, 0xc
jmp 0x508235
push ebx
push ebp
call fcn.004ffb70
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov esi, dword [ebx + 0xc]
cmp dword [esi + 0x1c], 0
je 0x507dea
mov al, byte [ebp + 0x1a]
cmp al, byte [esi + 2]
jbe 0x507dfd
push esi
push ebp
call fcn.004ffb70
mov dword [esi + 0x1c], eax
add esp, 8
mov al, byte [ebp + 0x1a]
mov byte [esi + 2], al
push esi
call fcn.0050a8e0
mov ecx, dword [ebx + 0x1c]
add esp, 4
cmp ecx, eax
je 0x507e1d
push eax
push ecx
push str._d_columns_assigned__d_values
push ebp
call fcn.00505000
add esp, 0x10
movsx eax, word [ebx + 0x20]
add eax, dword [esi + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov esi, dword [ebp + 0x38]
push dword [esp + 0xb0]
dec esi
push 0
push 0x4b
push dword [esp + 0x30]
lea edi, [esi - 1]
mov dword [ebp + 0x38], edi
call fcn.0052b410
push edi
push esi
push ebx
push ebp
call fcn.005063e0
mov ebx, dword [esp + 0xd0]
mov ebp, dword [esp + 0x44]
push ebx
push 1
push 0x47
push ebp
call fcn.0052b410
push esi
push ebp
call fcn.00537e30
push 0
push ebx
push 0x56
push ebp
call fcn.0052b410
add esp, 0x48
push edi
push ebp
call fcn.00537e30
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
push 0
push 0
push edi
push ebx
push ebp
call fcn.004d5310
add esp, 0x14
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
movzx eax, word [ebx + 0x20]
mov edx, dword [ebx + 0x2c]
push eax
movsx ecx, ax
push edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x28], ecx
call fcn.00526e00
movsx ecx, ax
mov eax, dword [esp + 0x30]
inc ecx
push edi
movsx eax, word [eax + 0x22]
inc eax
imul eax, dword [ebx + 0x1c]
add eax, ecx
push eax
push 0x9d
push esi
call fcn.0052b410
mov ecx, dword [esp + 0x38]
add esp, 0x18
test ecx, ecx
js 0x508235
mov eax, dword [esp + 0x28]
add ecx, ecx
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 8], 0x45
jne 0x508235
push edi
push 0x57
push esi
call fcn.0052b3b0
add esp, 0xc
jmp 0x508235
push str.row_value_misused
push ebp
call fcn.00505000
add esp, 8
jmp 0x508235
mov al, byte [ebp + 0x17]
mov edx, dword [ebx + 0x28]
mov byte [esp + 0x13], al
test edx, edx
je 0x507f7c
cmp byte [edx], 0
jne 0x507f53
movsx edi, word [ebx + 0x22]
add edi, dword [edx + 0xc]
jmp 0x508235
cmp byte [edx + 1], 0
je 0x507f7c
movsx ecx, word [ebx + 0x22]
mov eax, dword [edx + 0x14]
add ecx, ecx
push edi
movsx eax, word [eax + ecx*8 + 0xe]
push eax
push dword [edx + 8]
push 0x5e
push esi
call fcn.0052b470
add esp, 0x14
jmp 0x508235
push edi
push 0
push dword [ebx + 0x1c]
push 0x14
push esi
call fcn.0052b470
push edi
mov byte [ebp + 0x17], 0
mov esi, eax
push dword [ebx + 0xc]
push ebp
call fcn.00505eb0
mov al, byte [esp + 0x33]
push esi
push dword [esp + 0x48]
mov byte [ebp + 0x17], al
call fcn.00535820
add esp, 0x28
jmp 0x508235
mov eax, dword [ebp]
xor edx, edx
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [esp + 0x38], eax
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], edx
lea ecx, [eax + 8]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x38]
dec eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
mov dword [ebp + 0x38], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x508069
push edx
push edx
push eax
push dword [esp + 0x2c]
call fcn.004d5ac0
mov ebx, eax
add esp, 0x10
mov eax, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
cmp byte [eax + 0x57], 0
je 0x508024
test ebx, ebx
je 0x508235
push ebx
push eax
call fcn.00508c00
add esp, 8
jmp 0x508235
lea eax, [esp + 0x18]
push eax
push ebx
push ebp
call fcn.004d5770
push eax
push ebx
call fcn.004d6e30
push 0x34
lea eax, [esp + 0x54]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0x3c]
add esp, 0x20
mov byte [esp + 0x3c], 0x35
mov dword [esp + 0x48], ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], 0
mov ebx, dword [esp + 0x2c]
dec ebx
test ebx, ebx
jle 0x508158
dec ebx
shr ebx, 1
inc ebx
mov dword [esp + 0x1c], ebx
test eax, eax
je 0x5080f5
mov eax, dword [ecx]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 0x38]
dec eax
push 0x10
push eax
push edx
push ebp
mov dword [esp + 0x2c], eax
mov dword [ebp + 0x38], eax
call fcn.00508ec0
mov eax, dword [esp + 0x24]
push edi
push dword [eax + 0x14]
push ebp
call fcn.00505eb0
push dword [esp + 0x4c]
push esi
call fcn.00535260
mov ecx, dword [esi + 0xc]
add esp, 0x24
mov edx, dword [esp + 0x1c]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x5080d6
push edx
push esi
push ecx
call fcn.004f1810
add esp, 0xc
jmp 0x5080df
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + edx*4], eax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add ecx, 0x28
mov dword [esp + 0x14], ecx
sub ebx, 1
jne 0x508082
jmp 0x508158
mov ebx, dword [ebp + 0x38]
mov eax, dword [ecx]
dec ebx
push 0x10
push ebx
push eax
push ebp
mov dword [ebp + 0x38], ebx
call fcn.00508ec0
mov eax, dword [esp + 0x24]
push edi
push dword [eax + 0x14]
push ebp
call fcn.00505eb0
push dword [esp + 0x4c]
push esi
call fcn.00535260
mov ecx, dword [esi + 0xc]
add esp, 0x24
not ebx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50813d
push ebx
push esi
push ecx
call fcn.004f1810
add esp, 0xc
jmp 0x508146
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x6c]
mov dword [ecx + ebx*4], eax
mov ecx, dword [esp + 0x14]
add ecx, 0x28
sub dword [esp + 0x1c], 1
mov dword [esp + 0x14], ecx
jne 0x5080f5
mov eax, dword [esp + 0x2c]
push edi
test al, 1
je 0x508177
mov ecx, dword [esp + 0x3c]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 - 0xc]
push ebp
call fcn.00505eb0
add esp, 0xc
jmp 0x508184
push 0
push 0x4b
push esi
call fcn.0052b410
add esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x508199
push eax
push dword [esp + 0x24]
call fcn.00508c00
add esp, 8
push esi
call fcn.004f5e80
push dword [esp + 0x34]
push esi
call fcn.00537e30
add esp, 0xc
jmp 0x508235
cmp dword [ebp + 0x80], 0
jne 0x5081db
cmp byte [ebp + 0x12], 0
jne 0x5081db
push str.RAISE___may_only_be_used_within_a_trigger_program
push ebp
call fcn.00505000
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
cmp byte [ebx + 1], 2
jne 0x5081ef
mov eax, dword [ebp + 0x7c]
mov ecx, ebp
test eax, eax
cmovne ecx, eax
mov byte [ecx + 0x15], 1
mov cl, byte [ebx + 1]
mov eax, dword [ebx + 8]
push 0
cmp cl, 4
jne 0x508210
push eax
push 0
push 4
push 0
push 0x46
push esi
call fcn.0052b4d0
add esp, 0x1c
jmp 0x508235
cmp dword [ebp + 0x80], 0
push 0
push eax
movsx eax, cl
mov ecx, 0x713
push eax
mov eax, 1
cmovne eax, ecx
push eax
push ebp
call fcn.00511ce0
add esp, 0x18
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x508251
mov al, byte [ebp + 0x13]
cmp al, 8
jae 0x508251
movzx eax, al
mov dword [ebp + eax*4 + 0xa0], ecx
inc byte [ebp + 0x13]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x50826e
mov cl, byte [ebp + 0x13]
cmp cl, 8
jae 0x50826e
movzx ecx, cl
mov dword [ebp + ecx*4 + 0xa0], eax
inc byte [ebp + 0x13]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret
mov ebx, dword [esp + 0xb0]
push ebx
push 0
push 0x4b
push esi
call fcn.0052b410
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x94
ret