Function at 0x5093a0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x90
push ebx
push ebp
mov ebp, dword [esp + 0xa0]
xor edx, edx
push esi
push edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x20], edx
mov esi, dword [edi + 8]
mov dword [esp + 0x28], esi
mov ebx, 0x79
test ebp, ebp
je 0x5093e2
movzx ebx, byte [ebp]
lea eax, [ebx - 0x13]
mov dword [esp + 0x24], ebx
cmp eax, 0xa2
ja case.0x5093fb.21
movzx eax, byte [eax + 0x50a290]
jmp dword [eax*4 + 0x50a218]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0xa8], ebp
jmp 0x5093d5
movsx eax, word [ebp + 0x22]
mov edx, dword [ebp + 0x28]
lea ecx, [eax + eax*4]
cmp byte [edx], 0
mov eax, dword [edx + 0x1c]
lea eax, [eax + ecx*4]
mov dword [esp + 0x10], eax
jne 0x509435
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp byte [edx + 1], 0
je case.0x5093fb.167
mov edi, dword [eax]
mov ebx, dword [esp + 0xac]
movsx eax, word [eax + 0x12]
push ebx
push eax
push dword [edx + 8]
push 0x5d
push esi
call fcn.0052e1e0
mov eax, dword [esp + 0x24]
add esp, 0x14
movzx eax, word [eax + 0x10]
test ax, ax
js 0x50a20b
movsx ecx, ax
mov eax, dword [edi + 4]
add ecx, ecx
cmp byte [eax + ecx*8 + 8], 0x45
jne 0x50a20b
push ebx
push 0x56
push esi
call fcn.0052e120
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test byte [ebp + 4], 8
mov ecx, dword [ebp + 0x1c]
je 0x5094fd
push dword [esp + 0xac]
push dword [ebp + 0xc]
push edi
call fcn.005093a0
mov ecx, dword [ebp + 0x2c]
add esp, 0xc
mov edi, eax
test ecx, ecx
je 0x5094cd
movsx eax, word [ebp + 0x20]
push eax
push ecx
call fcn.00529b80
add esp, 8
movsx eax, al
jmp 0x5094d1
movsx eax, byte [ebp + 1]
cmp eax, 0x41
jle 0x5094f0
push 0xffffffffffffffff
lea eax, [eax*2 + 0x580dc0]
push eax
push 0
push 1
push edi
push 0x5f
push esi
call fcn.0052e240
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test ecx, ecx
jns 0x5095d6
mov ecx, dword [edi + 0x34]
test ecx, ecx
jns 0x5095d5
movsx edx, word [ebp + 0x20]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x10], eax
test edx, edx
jns 0x50952f
pop edi
pop esi
or eax, 0xffffffff
pop ebp
sub eax, ecx
pop ebx
add esp, 0x90
ret
mov ebx, edx
push edx
shl ebx, 4
add ebx, dword [eax + 4]
push eax
call fcn.00529be0
movsx ebp, ax
add esp, 8
movzx eax, word [ebx + 0xe]
sub ebp, dword [edi + 0x34]
test al, 0x60
je 0x5095a5
test eax, 0x100
je 0x509573
push dword [ebx]
push str.generated_column_loop_on___s_
push edi
call fcn.00506fd0
add esp, 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x90
ret
or eax, 0x100
mov word [ebx + 0xe], ax
test al, al
jns 0x50958f
push ebp
push ebx
push dword [esp + 0x18]
push edi
call fcn.00507fd0
add esp, 0x10
mov eax, 0xfe7f
and word [ebx + 0xe], ax
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x90
ret
cmp byte [ebx + 8], 0x45
jne 0x509598
mov ebx, dword [esp + 0xac]
push ebx
push ebp
push 0x50
push esi
call fcn.0052e180
push ebx
push 0x56
push esi
call fcn.0052e120
add esp, 0x1c
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
dec ecx
movzx eax, byte [ebp + 2]
push eax
push dword [esp + 0xb0]
movsx eax, word [ebp + 0x20]
push ecx
push eax
push dword [ebp + 0x2c]
push edi
call fcn.00508110
add esp, 0x18
mov edi, eax
cmp dword [ebp + 0x2c], 0
jne 0x50960e
cmp byte [ebp + 1], 0x45
jne 0x50960e
push edi
push 0x56
push esi
call fcn.0052e120
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
push ebx
push 0
push ebp
push edi
call fcn.004c47f0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
push ebx
push ebp
call fcn.0050c4a0
add esp, 4
push eax
push 0x47
jmp 0x50a202
mov ebx, dword [esp + 0xac]
push ebx
push 0
push dword [ebp + 8]
push esi
call fcn.004c4980
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push dword [ebp + 8]
mov ebx, dword [esp + 0xb0]
push ebx
push esi
call fcn.00536ee0
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov esi, dword [ebp + 8]
add esi, 2
push esi
call fcn.00529910
mov ebp, dword [esp + 0x2c]
lea edi, [eax - 1]
push edi
push esi
push dword [ebp]
call fcn.00517930
mov ebx, dword [esp + 0xbc]
push 0xfffffffffffffff9
push eax
mov eax, edi
cdq
push 0
sub eax, edx
push ebx
sar eax, 1
push eax
push 0x4c
push ebp
call fcn.0052e240
add esp, 0x2c
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
movsx eax, word [ebp + 0x20]
push ebx
push eax
push 0x4d
push esi
call fcn.0052e180
mov eax, dword [ebp + 8]
add esp, 0x10
cmp byte [eax + 1], 0
je 0x50a20b
movsx eax, word [ebp + 0x20]
mov esi, dword [edi + 0xe0]
push eax
push esi
call fcn.0052dc40
push 0xffffffffffffffff
push eax
push dword [esp + 0x38]
mov dword [esi], 0
call fcn.0052e540
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [ebp + 0x1c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
push ebx
push dword [ebp + 0xc]
push edi
call fcn.005093a0
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x509772
push ebx
push edi
push 0x50
push esi
call fcn.0052e180
add esp, 0x10
mov edi, ebx
push 0
push dword [ebp + 8]
call fcn.004f9c00
movsx eax, al
push eax
push ebx
push 0x57
push esi
call fcn.0052e180
add esp, 0x18
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
xor eax, eax
mov edx, pe_nt_image_headers32
cmp ebx, 0x2d
mov dword [esp + 0x20], edx
sete al
lea ebx, [eax + 0x34]
mov dword [esp + 0x24], ebx
mov eax, dword [ebp + 0xc]
push eax
mov dword [esp + 0x14], eax
call fcn.0050b880
add esp, 4
test eax, eax
je 0x5097ea
push edx
push ebx
push dword [esp + 0xb4]
push ebp
push edi
call fcn.004c54c0
mov eax, dword [esp + 0xc0]
add esp, 0x14
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push edi
call fcn.0050a340
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x10]
push edi
call fcn.0050a340
mov ebx, dword [esp + 0xc4]
push ebx
push 1
push 0x47
push esi
mov dword [esp + 0x54], eax
call fcn.0052e180
mov eax, dword [ebp + 4]
shr eax, 9
and eax, 1
push eax
push dword [esp + 0x4c]
mov eax, dword [esi + 0x74]
add eax, 2
push eax
push dword [esp + 0x60]
push dword [esp + 0x54]
push dword [esp + 0x60]
push dword [ebp + 0x10]
push dword [esp + 0x54]
push edi
call fcn.004c3c10
add esp, 0x4c
cmp dword [esp + 0x20], 0x80
jne 0x50986f
push ebx
push 0
push 0x47
push esi
call fcn.0052e180
add esp, 0x10
jmp 0x509a12
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x24]
push 0x5b
push esi
call fcn.0052e1e0
add esp, 0x14
jmp 0x509a12
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a340
mov esi, eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x10]
push edi
call fcn.0050a340
push dword [esp + 0xc4]
push esi
push eax
push ebx
push dword [esp + 0x50]
call fcn.0052e1e0
add esp, 0x2c
jmp 0x509a12
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0x9b
jne 0x5098ec
mov ebx, dword [esp + 0xac]
push ebx
push 1
push eax
push edi
call fcn.004c47f0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp cl, 0x99
jne 0x509914
mov ebx, dword [esp + 0xac]
push ebx
push 1
push dword [eax + 8]
push esi
call fcn.004c4980
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
lea eax, [esp + 0x14]
mov byte [esp + 0x6c], 0x9b
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0x4400
push eax
push edi
mov dword [esp + 0x80], edx
call fcn.0050a340
mov esi, eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a340
push dword [esp + 0xc4]
push esi
push eax
push 0x6b
push dword [esp + 0x50]
call fcn.0052e1e0
add esp, 0x2c
jmp 0x509a12
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a340
push dword [esp + 0xb8]
push eax
push ebx
push esi
call fcn.0052e180
add esp, 0x1c
jmp 0x509a12
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a340
push dword [ebp + 0x10]
mov edx, eax
call fcn.0050c4a0
mov ecx, eax
xor eax, eax
cmp byte [ebp + 2], 0x2d
sete al
xor eax, ecx
push eax
xor eax, eax
test ecx, ecx
sete al
push eax
push dword [esp + 0xc4]
push edx
push 0x5a
push esi
call fcn.0052e310
add esp, 0x28
jmp 0x509a12
mov ebx, dword [esp + 0xac]
push ebx
push 1
push 0x47
push esi
call fcn.0052e180
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a340
push eax
push dword [esp + 0x44]
push esi
call fcn.0052e120
push ebx
mov ebx, dword [esp + 0x54]
mov esi, eax
push 0
push 0x47
push ebx
call fcn.0052e180
push esi
push ebx
call fcn.00536c00
add esp, 0x40
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x509a2e
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x509a2e
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x50a1e4
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x50a1e4
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov eax, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x509a91
movzx ecx, word [ebp + 0x22]
test cx, cx
js 0x509a91
movsx ecx, cx
cmp ecx, dword [eax + 0x2c]
jge 0x509a91
mov eax, dword [eax + 0x28]
lea ecx, [ecx + ecx*4]
pop edi
pop esi
pop ebp
mov eax, dword [eax + ecx*4 + 8]
pop ebx
add esp, 0x90
ret
push ebp
push str.misuse_of_aggregate:__T__
push edi
call fcn.00506fd0
mov eax, dword [esp + 0xb8]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test dword [ebp + 4], 0x1000000
mov ecx, dword [edi]
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov al, byte [ecx + 0x54]
mov byte [esp + 0x2c], al
je 0x509ae1
mov eax, dword [ebp + 0x2c]
pop edi
pop esi
pop ebp
mov eax, dword [eax + 0x38]
pop ebx
add esp, 0x90
ret
cmp byte [edi + 0x17], dl
je 0x509b0e
push ebp
call fcn.0050b6a0
add esp, 4
test eax, eax
je 0x509b0a
push 0xffffffffffffffff
push ebp
push edi
call fcn.00509210
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [esp + 0x20]
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
test eax, eax
je 0x509b1d
mov eax, dword [eax]
jmp 0x509b1f
xor eax, eax
push 0
push dword [esp + 0x30]
mov dword [esp + 0x1c], eax
push eax
push dword [ebp + 8]
push ecx
call fcn.0050c630
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x509d37
cmp dword [ebx + 0x14], 0
jne 0x509d37
mov eax, dword [ebx + 4]
test eax, 0x400000
je 0x509b7a
push dword [esp + 0xac]
push dword [ebx + 8]
push dword [esp + 0x20]
push edi
call fcn.004cb650
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test eax, 0x280000
je 0x509b8c
push ebx
push ebp
push edi
call fcn.0050ac80
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x509c0a
mov ebp, dword [esp + 0x18]
lea ebx, [eax + 1]
mov esi, dword [esp + 0x2c]
add ebp, 8
cmp eax, 0x20
jge 0x509bc8
push dword [ebp]
call fcn.0050b650
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x509bc8
or dword [esp + 0x24], ebx
test byte [esi + 4], 0x20
je 0x509bed
cmp dword [esp + 0x10], 0
jne 0x509bed
push dword [ebp]
push edi
call fcn.0050a460
mov ecx, dword [esp + 0x1c]
add esp, 8
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
inc eax
rol ebx, 1
add ebp, 0x14
mov dword [esp + 0x1c], eax
cmp eax, ecx
jl 0x509ba8
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x509c75
cmp dword [esp + 0x24], 0
je 0x509c2a
mov eax, dword [edi + 0x2c]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x1c], edx
mov dword [edi + 0x2c], eax
jmp 0x509c3a
push ecx
push edi
call fcn.00516b60
add esp, 8
mov dword [esp + 0x1c], eax
mov edx, eax
test byte [ebx + 4], 0xc0
mov ecx, dword [esp + 0x18]
je 0x509c60
mov eax, dword [ecx + 8]
mov al, byte [eax]
cmp al, 0xa7
je 0x509c51
cmp al, 0xa9
jne 0x509c60
mov esi, dword [ecx + 8]
mov al, byte [ebx + 4]
and al, 0xc0
mov byte [esi + 2], al
mov esi, dword [esp + 0x28]
push 3
push 0
push edx
push ecx
push edi
call fcn.00507d50
mov edx, dword [esp + 0x2c]
add esp, 0x14
jmp 0x509c7d
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
cmp eax, 2
jl 0x509ca1
test byte [ebp + 4], 0x80
je 0x509ca1
push dword [edx + 0x1c]
push eax
push ebx
push dword [esp + 0x2c]
call fcn.0053b0b0
add esp, 0x10
mov ebx, eax
jmp 0x509cbe
test eax, eax
jle 0x509cba
push dword [edx + 8]
push eax
push ebx
push dword [esp + 0x2c]
call fcn.0053b0b0
add esp, 0x10
mov ebx, eax
jmp 0x509cbe
mov ebx, dword [esp + 0x2c]
test byte [ebx + 4], 0x20
je 0x509ce7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x509cd3
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
push 0xfffffffffffffffe
push eax
push 0
push 0
push 0
push 0x54
push esi
call fcn.0052e240
add esp, 0x1c
movzx eax, byte [ebp + 2]
mov esi, dword [esp + 0x14]
mov ebp, dword [esp + 0x1c]
push eax
push ebx
mov ebx, dword [esp + 0xb4]
push esi
push ebx
push ebp
push dword [esp + 0x38]
push edi
call fcn.0052e020
add esp, 0x1c
test esi, esi
je 0x50a20b
cmp dword [esp + 0x24], 0
jne 0x50a20b
push esi
push ebp
push edi
call fcn.00523820
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push ebp
push str.unknown_function:__T__
push edi
call fcn.00506fd0
mov eax, dword [esp + 0xb8]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [edi]
cmp byte [eax + 0x57], dl
jne 0x509566
cmp ebx, 0x8a
jne 0x509d9f
test dword [ebp + 4], 0x800
je 0x509d9f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
cmp eax, 1
je 0x509d9f
push 1
push eax
push edi
call fcn.00529990
mov eax, dword [esp + 0xb8]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push ebp
push edi
call fcn.00501b90
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], edx
jne 0x509dcc
push eax
push edi
call fcn.00501b90
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx + 0x1c], eax
push dword [ebp + 0xc]
call fcn.0050c500
mov ecx, dword [ebp + 0x1c]
add esp, 4
cmp ecx, eax
je 0x509dee
push eax
push ecx
push str._d_columns_assigned__d_values
push edi
call fcn.00506fd0
add esp, 0x10
mov eax, dword [ebp + 0xc]
movsx ecx, word [ebp + 0x20]
pop edi
pop esi
add ecx, dword [eax + 0x1c]
pop ebp
mov eax, ecx
pop ebx
add esp, 0x90
ret
mov esi, dword [edi + 0x38]
push dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
dec esi
push 0
push 0x4a
push dword [esp + 0x34]
lea edi, [esi - 1]
mov dword [ebx + 0x38], edi
call fcn.0052e180
push edi
push esi
push ebp
push ebx
call fcn.005082d0
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x48]
push ebx
push 1
push 0x47
push ebp
call fcn.0052e180
push esi
push ebp
call fcn.00539320
push 0
push ebx
push 0x55
push ebp
call fcn.0052e180
add esp, 0x48
push edi
push ebp
call fcn.00539320
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
push 0
push 0
push ebx
push ebp
push edi
call fcn.004cb4f0
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
movsx edi, word [ebp + 0x20]
mov eax, dword [ebp + 0x2c]
push ebx
push edi
push eax
mov dword [esp + 0x1c], eax
call fcn.00529be0
movsx ecx, ax
add esp, 8
mov eax, dword [esp + 0x14]
movsx eax, word [eax + 0x22]
inc eax
imul eax, dword [ebp + 0x1c]
inc eax
add eax, ecx
push eax
push 0x9c
push esi
call fcn.0052e180
add esp, 0x10
test edi, edi
js 0x50a1e4
mov eax, dword [esp + 0x10]
add edi, edi
mov eax, dword [eax + 4]
cmp byte [eax + edi*8 + 8], 0x45
jne 0x50a1e4
push ebx
push 0x56
push esi
call fcn.0052e120
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push str.row_value_misused
push edi
call fcn.00506fd0
mov eax, dword [esp + 0xb4]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push dword [ebp + 0x1c]
mov bl, byte [edi + 0x17]
push 0x16
push esi
call fcn.0052e120
push dword [esp + 0xb8]
mov byte [edi + 0x17], 0
mov esi, eax
push dword [ebp + 0xc]
push edi
call fcn.005093a0
mov byte [edi + 0x17], bl
mov ebx, dword [esp + 0x40]
push esi
push ebx
mov dword [esp + 0xcc], eax
call fcn.00536c00
push dword [esp + 0xcc]
push esi
push ebx
call fcn.0052e6c0
mov eax, dword [esp + 0xd8]
add esp, 0x2c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ecx, dword [ebp + 0x14]
xor edx, edx
mov ebx, dword [edi]
mov dword [esp + 0x34], ecx
mov dword [esp + 0x10], edx
lea eax, [ecx + 8]
mov dword [esp + 0x24], edx
mov ecx, dword [ecx]
dec dword [edi + 0x38]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0x1c], ecx
mov ecx, dword [edi + 0x38]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x20], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ebp
test ebp, ebp
je 0x50a039
push edx
push ebp
push ebx
call fcn.0050aad0
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
cmp byte [eax + 0x57], 0
je 0x50a000
test ebx, ebx
je 0x50a1e4
push ebx
push eax
call fcn.0050aa20
mov eax, dword [esp + 0xb4]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
lea eax, [esp + 0x14]
push eax
push ebx
push edi
call fcn.004cb8d0
push eax
push ebx
call fcn.004cccb0
push 0x34
lea eax, [esp + 0x50]
push 0
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [esp + 0x40]
lea edx, [esp + 0x58]
add esp, 0x20
mov byte [esp + 0x38], 0x35
mov dword [esp + 0x44], ebx
mov dword [esp + 0x10], edx
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0xac]
dec ecx
test ecx, ecx
jle 0x50a0ce
dec ecx
shr ecx, 1
inc ecx
mov dword [esp + 0x2c], ecx
test ebp, ebp
je 0x50a061
mov eax, dword [eax]
mov dword [esp + 0x48], eax
jmp 0x50a067
mov edx, dword [eax]
mov dword [esp + 0x10], edx
dec dword [edi + 0x38]
mov ebp, dword [edi + 0x38]
push 0x10
push ebp
push edx
push edi
call fcn.0050ad40
mov eax, dword [esp + 0x30]
push ebx
push dword [eax + 0x14]
push edi
call fcn.00507cb0
push dword [esp + 0x44]
push esi
call fcn.00536510
mov ecx, dword [esi + 0xc]
add esp, 0x24
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50a0ac
push ebp
push esi
push ecx
call fcn.004f4d20
add esp, 0xc
jmp 0x50a0b5
mov ecx, dword [ecx + 0x40]
mov eax, dword [esi + 0x74]
mov dword [ecx + ebp*4], eax
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x10]
add eax, 0x28
dec dword [esp + 0x2c]
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x20], eax
jne 0x50a055
mov eax, dword [esp + 0x1c]
push ebx
test al, 1
je 0x50a0ed
mov ecx, dword [esp + 0x38]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 - 0xc]
push edi
call fcn.00507cb0
add esp, 0xc
jmp 0x50a0fa
push 0
push 0x4a
push esi
call fcn.0052e180
add esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50a10f
push eax
push dword [esp + 0x1c]
call fcn.0050aa20
add esp, 8
push esi
call fcn.004f89c0
mov ecx, dword [esi + 0xc]
add esp, 4
mov edx, dword [esp + 0x28]
not edx
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50a146
push edx
push esi
push ecx
call fcn.004f4d20
mov eax, dword [esp + 0xb8]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov eax, dword [esi + 0x74]
mov ecx, dword [ecx + 0x40]
pop edi
pop esi
pop ebp
mov dword [ecx + edx*4], eax
mov eax, dword [esp + 0xa0]
pop ebx
add esp, 0x90
ret
cmp dword [edi + 0x78], edx
jne 0x50a186
cmp byte [edi + 0x12], dl
jne 0x50a186
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.00506fd0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp byte [ebp + 1], 2
jne 0x50a195
push edi
call fcn.0051ba00
add esp, 4
mov al, byte [ebp + 1]
push 0
cmp al, 4
jne 0x50a1c4
push dword [ebp + 8]
push 0
push 4
push 0
push 0x46
push esi
call fcn.0052e240
mov eax, dword [esp + 0xc8]
add esp, 0x1c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
push 0
push dword [ebp + 8]
movsx eax, al
push eax
mov eax, dword [edi + 0x78]
neg eax
sbb eax, eax
and eax, 0x712
inc eax
push eax
push edi
call fcn.00517600
add esp, 0x18
mov eax, dword [esp + 0xac]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
mov ebx, dword [esp + 0xac]
push ebx
push 0
push 0x4a
push esi
call fcn.0052e180
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x90
ret