Function at 0x5095a0
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 0x5095e2
movzx ebx, byte [ebp]
lea eax, [ebx - 0x13]
mov dword [esp + 0x24], ebx
cmp eax, 0xa2
ja case.0x5095fb.21
movzx eax, byte [eax + 0x50a490]
jmp dword [eax*4 + 0x50a418]
mov ebp, dword [ebp + 0xc]
mov dword [esp + 0xa8], ebp
jmp 0x5095d5
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 0x509635
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp byte [edx + 1], 0
je case.0x5095fb.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.0052e3e0
mov eax, dword [esp + 0x24]
add esp, 0x14
movzx eax, word [eax + 0x10]
test ax, ax
js 0x50a40b
movsx ecx, ax
mov eax, dword [edi + 4]
add ecx, ecx
cmp byte [eax + ecx*8 + 8], 0x45
jne 0x50a40b
push ebx
push 0x56
push esi
call fcn.0052e320
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 0x5096fd
push dword [esp + 0xac]
push dword [ebp + 0xc]
push edi
call fcn.005095a0
mov ecx, dword [ebp + 0x2c]
add esp, 0xc
mov edi, eax
test ecx, ecx
je 0x5096cd
movsx eax, word [ebp + 0x20]
push eax
push ecx
call fcn.00529d80
add esp, 8
movsx eax, al
jmp 0x5096d1
movsx eax, byte [ebp + 1]
cmp eax, 0x41
jle 0x5096f0
push 0xffffffffffffffff
lea eax, [eax*2 + 0x580dc0]
push eax
push 0
push 1
push edi
push 0x5f
push esi
call fcn.0052e440
add esp, 0x1c
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test ecx, ecx
jns 0x5097d6
mov ecx, dword [edi + 0x34]
test ecx, ecx
jns 0x5097d5
movsx edx, word [ebp + 0x20]
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x10], eax
test edx, edx
jns 0x50972f
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.00529de0
movsx ebp, ax
add esp, 8
movzx eax, word [ebx + 0xe]
sub ebp, dword [edi + 0x34]
test al, 0x60
je 0x5097a5
test eax, 0x100
je 0x509773
push dword [ebx]
push str.generated_column_loop_on___s_
push edi
call fcn.005071d0
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 0x50978f
push ebp
push ebx
push dword [esp + 0x18]
push edi
call fcn.005081d0
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 0x509798
mov ebx, dword [esp + 0xac]
push ebx
push ebp
push 0x50
push esi
call fcn.0052e380
push ebx
push 0x56
push esi
call fcn.0052e320
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.00508310
add esp, 0x18
mov edi, eax
cmp dword [ebp + 0x2c], 0
jne 0x50980e
cmp byte [ebp + 1], 0x45
jne 0x50980e
push edi
push 0x56
push esi
call fcn.0052e320
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.004c49f0
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.0050c6a0
add esp, 4
push eax
push 0x47
jmp 0x50a402
mov ebx, dword [esp + 0xac]
push ebx
push 0
push dword [ebp + 8]
push esi
call fcn.004c4b80
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.005370e0
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.00529b10
mov ebp, dword [esp + 0x2c]
lea edi, [eax - 1]
push edi
push esi
push dword [ebp]
call fcn.00517b30
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.0052e440
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.0052e380
mov eax, dword [ebp + 8]
add esp, 0x10
cmp byte [eax + 1], 0
je 0x50a40b
movsx eax, word [ebp + 0x20]
mov esi, dword [edi + 0xe0]
push eax
push esi
call fcn.0052de40
push 0xffffffffffffffff
push eax
push dword [esp + 0x38]
mov dword [esi], 0
call fcn.0052e740
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.005095a0
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x509972
push ebx
push edi
push 0x50
push esi
call fcn.0052e380
add esp, 0x10
mov edi, ebx
push 0
push dword [ebp + 8]
call fcn.004f9e00
movsx eax, al
push eax
push ebx
push 0x57
push esi
call fcn.0052e380
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.0050ba80
add esp, 4
test eax, eax
je 0x5099ea
push edx
push ebx
push dword [esp + 0xb4]
push ebp
push edi
call fcn.004c56c0
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.0050a540
mov dword [esp + 0x28], eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x10]
push edi
call fcn.0050a540
mov ebx, dword [esp + 0xc4]
push ebx
push 1
push 0x47
push esi
mov dword [esp + 0x54], eax
call fcn.0052e380
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.004c3e10
add esp, 0x4c
cmp dword [esp + 0x20], 0x80
jne 0x509a6f
push ebx
push 0
push 0x47
push esi
call fcn.0052e380
add esp, 0x10
jmp 0x509c12
push dword [esp + 0x2c]
push ebx
push dword [esp + 0x24]
push 0x5b
push esi
call fcn.0052e3e0
add esp, 0x14
jmp 0x509c12
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a540
mov esi, eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0x10]
push edi
call fcn.0050a540
push dword [esp + 0xc4]
push esi
push eax
push ebx
push dword [esp + 0x50]
call fcn.0052e3e0
add esp, 0x2c
jmp 0x509c12
mov eax, dword [ebp + 0xc]
mov cl, byte [eax]
cmp cl, 0x9b
jne 0x509aec
mov ebx, dword [esp + 0xac]
push ebx
push 1
push eax
push edi
call fcn.004c49f0
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp cl, 0x99
jne 0x509b14
mov ebx, dword [esp + 0xac]
push ebx
push 1
push dword [eax + 8]
push esi
call fcn.004c4b80
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.0050a540
mov esi, eax
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a540
push dword [esp + 0xc4]
push esi
push eax
push 0x6b
push dword [esp + 0x50]
call fcn.0052e3e0
add esp, 0x2c
jmp 0x509c12
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a540
push dword [esp + 0xb8]
push eax
push ebx
push esi
call fcn.0052e380
add esp, 0x1c
jmp 0x509c12
lea eax, [esp + 0x14]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a540
push dword [ebp + 0x10]
mov edx, eax
call fcn.0050c6a0
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.0052e510
add esp, 0x28
jmp 0x509c12
mov ebx, dword [esp + 0xac]
push ebx
push 1
push 0x47
push esi
call fcn.0052e380
lea eax, [esp + 0x24]
push eax
push dword [ebp + 0xc]
push edi
call fcn.0050a540
push eax
push dword [esp + 0x44]
push esi
call fcn.0052e320
push ebx
mov ebx, dword [esp + 0x54]
mov esi, eax
push 0
push 0x47
push ebx
call fcn.0052e380
push esi
push ebx
call fcn.00536e00
add esp, 0x40
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x509c2e
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x509c2e
movzx eax, al
mov dword [edi + eax*4 + 0x98], ecx
inc byte [edi + 0x13]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x50a3e4
mov al, byte [edi + 0x13]
cmp al, 8
jae 0x50a3e4
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 0x509c91
movzx ecx, word [ebp + 0x22]
test cx, cx
js 0x509c91
movsx ecx, cx
cmp ecx, dword [eax + 0x2c]
jge 0x509c91
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.005071d0
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 0x509ce1
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 0x509d0e
push ebp
call fcn.0050b8a0
add esp, 4
test eax, eax
je 0x509d0a
push 0xffffffffffffffff
push ebp
push edi
call fcn.00509410
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 0x509d1d
mov eax, dword [eax]
jmp 0x509d1f
xor eax, eax
push 0
push dword [esp + 0x30]
mov dword [esp + 0x1c], eax
push eax
push dword [ebp + 8]
push ecx
call fcn.0050c830
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x2c], ebx
test ebx, ebx
je 0x509f37
cmp dword [ebx + 0x14], 0
jne 0x509f37
mov eax, dword [ebx + 4]
test eax, 0x400000
je 0x509d7a
push dword [esp + 0xac]
push dword [ebx + 8]
push dword [esp + 0x20]
push edi
call fcn.004cb850
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
test eax, 0x280000
je 0x509d8c
push ebx
push ebp
push edi
call fcn.0050ae80
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor eax, eax
mov dword [esp + 0x1c], eax
test ecx, ecx
jle 0x509e0a
mov ebp, dword [esp + 0x18]
lea ebx, [eax + 1]
mov esi, dword [esp + 0x2c]
add ebp, 8
cmp eax, 0x20
jge 0x509dc8
push dword [ebp]
call fcn.0050b850
mov ecx, dword [esp + 0x18]
add esp, 4
test eax, eax
mov eax, dword [esp + 0x1c]
je 0x509dc8
or dword [esp + 0x24], ebx
test byte [esi + 4], 0x20
je 0x509ded
cmp dword [esp + 0x10], 0
jne 0x509ded
push dword [ebp]
push edi
call fcn.0050a660
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 0x509da8
mov ebp, dword [esp + 0xa8]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
test edx, edx
je 0x509e75
cmp dword [esp + 0x24], 0
je 0x509e2a
mov eax, dword [edi + 0x2c]
lea edx, [eax + 1]
add eax, ecx
mov dword [esp + 0x1c], edx
mov dword [edi + 0x2c], eax
jmp 0x509e3a
push ecx
push edi
call fcn.00516d60
add esp, 8
mov dword [esp + 0x1c], eax
mov edx, eax
test byte [ebx + 4], 0xc0
mov ecx, dword [esp + 0x18]
je 0x509e60
mov eax, dword [ecx + 8]
mov al, byte [eax]
cmp al, 0xa7
je 0x509e51
cmp al, 0xa9
jne 0x509e60
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.00507f50
mov edx, dword [esp + 0x2c]
add esp, 0x14
jmp 0x509e7d
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x14]
cmp eax, 2
jl 0x509ea1
test byte [ebp + 4], 0x80
je 0x509ea1
push dword [edx + 0x1c]
push eax
push ebx
push dword [esp + 0x2c]
call fcn.0053b2b0
add esp, 0x10
mov ebx, eax
jmp 0x509ebe
test eax, eax
jle 0x509eba
push dword [edx + 8]
push eax
push ebx
push dword [esp + 0x2c]
call fcn.0053b2b0
add esp, 0x10
mov ebx, eax
jmp 0x509ebe
mov ebx, dword [esp + 0x2c]
test byte [ebx + 4], 0x20
je 0x509ee7
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x509ed3
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.0052e440
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.0052e220
add esp, 0x1c
test esi, esi
je 0x50a40b
cmp dword [esp + 0x24], 0
jne 0x50a40b
push esi
push ebp
push edi
call fcn.00523a20
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.005071d0
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 0x509766
cmp ebx, 0x8a
jne 0x509f9f
test dword [ebp + 4], 0x800
je 0x509f9f
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
cmp eax, 1
je 0x509f9f
push 1
push eax
push edi
call fcn.00529b90
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.00501d90
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 0x509fcc
push eax
push edi
call fcn.00501d90
mov ecx, dword [ebp + 0xc]
add esp, 8
mov dword [ecx + 0x1c], eax
push dword [ebp + 0xc]
call fcn.0050c700
mov ecx, dword [ebp + 0x1c]
add esp, 4
cmp ecx, eax
je 0x509fee
push eax
push ecx
push str._d_columns_assigned__d_values
push edi
call fcn.005071d0
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.0052e380
push edi
push esi
push ebp
push ebx
call fcn.005084d0
mov ebx, dword [esp + 0xcc]
mov ebp, dword [esp + 0x48]
push ebx
push 1
push 0x47
push ebp
call fcn.0052e380
push esi
push ebp
call fcn.00539520
push 0
push ebx
push 0x55
push ebp
call fcn.0052e380
add esp, 0x48
push edi
push ebp
call fcn.00539520
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.004cb6f0
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.00529de0
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.0052e380
add esp, 0x10
test edi, edi
js 0x50a3e4
mov eax, dword [esp + 0x10]
add edi, edi
mov eax, dword [eax + 4]
cmp byte [eax + edi*8 + 8], 0x45
jne 0x50a3e4
push ebx
push 0x56
push esi
call fcn.0052e320
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.005071d0
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.0052e320
push dword [esp + 0xb8]
mov byte [edi + 0x17], 0
mov esi, eax
push dword [ebp + 0xc]
push edi
call fcn.005095a0
mov byte [edi + 0x17], bl
mov ebx, dword [esp + 0x40]
push esi
push ebx
mov dword [esp + 0xcc], eax
call fcn.00536e00
push dword [esp + 0xcc]
push esi
push ebx
call fcn.0052e8c0
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 0x50a239
push edx
push ebp
push ebx
call fcn.0050acd0
mov ebx, eax
add esp, 0xc
mov eax, dword [esp + 0x18]
mov dword [esp + 0x24], ebx
cmp byte [eax + 0x57], 0
je 0x50a200
test ebx, ebx
je 0x50a3e4
push ebx
push eax
call fcn.0050ac20
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.004cbad0
push eax
push ebx
call fcn.004cceb0
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 0x50a2ce
dec ecx
shr ecx, 1
inc ecx
mov dword [esp + 0x2c], ecx
test ebp, ebp
je 0x50a261
mov eax, dword [eax]
mov dword [esp + 0x48], eax
jmp 0x50a267
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.0050af40
mov eax, dword [esp + 0x30]
push ebx
push dword [eax + 0x14]
push edi
call fcn.00507eb0
push dword [esp + 0x44]
push esi
call fcn.00536710
mov ecx, dword [esi + 0xc]
add esp, 0x24
not ebp
mov eax, dword [ecx + 0x3c]
add eax, dword [ecx + 0x38]
jns 0x50a2ac
push ebp
push esi
push ecx
call fcn.004f4f20
add esp, 0xc
jmp 0x50a2b5
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 0x50a255
mov eax, dword [esp + 0x1c]
push ebx
test al, 1
je 0x50a2ed
mov ecx, dword [esp + 0x38]
lea eax, [eax + eax*4]
push dword [ecx + eax*4 - 0xc]
push edi
call fcn.00507eb0
add esp, 0xc
jmp 0x50a2fa
push 0
push 0x4a
push esi
call fcn.0052e380
add esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
je 0x50a30f
push eax
push dword [esp + 0x1c]
call fcn.0050ac20
add esp, 8
push esi
call fcn.004f8bc0
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 0x50a346
push edx
push esi
push ecx
call fcn.004f4f20
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 0x50a386
cmp byte [edi + 0x12], dl
jne 0x50a386
push str.RAISE___may_only_be_used_within_a_trigger_program
push edi
call fcn.005071d0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret
cmp byte [ebp + 1], 2
jne 0x50a395
push edi
call fcn.0051bc00
add esp, 4
mov al, byte [ebp + 1]
push 0
cmp al, 4
jne 0x50a3c4
push dword [ebp + 8]
push 0
push 4
push 0
push 0x46
push esi
call fcn.0052e440
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.00517800
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.0052e380
add esp, 0x10
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x90
ret