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

Disassembly:
sub esp, 0xb8
push esi
mov esi, dword [esp + 0xc4]
test esi, esi
push edi
mov edi, dword [esp + 0xc4]
mov eax, dword [edi]
mov dword [esp + 0x34], 1
mov dword [esp + 8], eax
je 0x52a913
cmp byte [eax + 0x1e], 0
jne 0x52a913
cmp dword [edi + 0x40], 0
jne 0x52a913
push 0
push 0
push 0
push 0x15
push edi
call fcn.005265d0
add esp, 0x14
test eax, eax
jne 0x52a913
push 0x2c
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004af7d0
mov edx, dword [esp + 0xd8]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp byte [edx], 4
mov dword [esp + 0x18], ecx
ja 0x52a8b7
mov dword [esi + 0x1c], 0
mov byte [esi + 5], 0
push 0
push esi
push edi
call fcn.00529de0
add esp, 0xc
test eax, eax
jne 0x52b517
cmp dword [esi + 0x20], 0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
je 0x52a945
cmp dword [esi + 0x28], 0
jne 0x52a921
xor ecx, ecx
xor edx, edx
mov eax, esi
mov dword [eax + 0x24], ecx
mov dword [eax + 0x28], esi
mov ecx, eax
mov eax, dword [eax + 0x20]
add edx, 1
test eax, eax
jne 0x52a8e4
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x52a921
cmp edx, eax
jle 0x52a921
push str.too_many_terms_in_compound_SELECT
push edi
call fcn.00508680
add esp, 8
pop edi
mov eax, 1
pop esi
add esp, 0xb8
ret
mov edx, dword [esp + 0xdc]
mov eax, dword [esp + 0xcc]
push edx
push eax
push edi
mov edi, esi
call fcn.00529370
add esp, 0xc
pop edi
pop esi
add esp, 0xb8
ret
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
mov dword [esp + 0xc], eax
movzx eax, byte [esi + 5]
mov dword [esp + 0x20], edx
movzx edx, byte [esi + 7]
mov dword [esp + 0x14], eax
mov eax, dword [esi]
test eax, eax
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], eax
je 0x52b517
cmp dword [edi + 0x40], 0
jg 0x52b517
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [esp + 0xcc]
push edx
mov ecx, edi
call fcn.00527640
add esp, 4
test eax, eax
jne 0x52b517
mov eax, dword [esp + 0xcc]
cmp byte [eax], 4
ja 0x52a9bb
mov dword [esp + 0x18], 0
push ebp
push edi
call fcn.00529190
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x52b516
mov ecx, dword [esp + 0x28]
cmp word [ecx], 0
push ebx
mov dword [esp + 0x38], 0
jle 0x52ab1e
xor edx, edx
xor ebx, ebx
jmp 0x52a9f2
xor edx, edx
mov eax, dword [esp + 0x2c]
cmp dword [ebx + eax + 0x18], edx
lea ecx, [ebx + eax + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x34], ecx
je 0x52ab05
cmp byte [ebx + eax + 0x1c], 0
jne 0x52ab05
mov eax, dword [ebx + eax + 0xc]
cmp eax, edx
je 0x52aa39
mov edx, dword [edi + 0x18c]
mov dword [esp + 0x24], edx
mov dword [edi + 0x18c], eax
mov dword [esp + 0x1c], 1
jmp 0x52aa3d
mov dword [esp + 0x1c], edx
push esi
call fcn.0052bd80
add dword [edi + 0x1a4], eax
mov eax, dword [esp + 0x30]
mov eax, dword [ebx + eax + 0x20]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0xc0], eax
xor eax, eax
push eax
lea ecx, [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov dword [esp + 0xd0], eax
mov dword [esp + 0xd4], eax
push esi
lea eax, [esp + 0xcc]
mov byte [esp + 0xcc], 9
mov byte [esp + 0xcd], 0
mov edx, dword [ecx]
push eax
push edx
push edi
call fcn.0052a830
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp byte [eax + 0x1e], 0
jne 0x52b515
push esi
call fcn.0052bd80
sub dword [edi + 0x1a4], eax
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x52aaca
mov ecx, dword [esp + 0x24]
mov dword [edi + 0x18c], ecx
mov ecx, dword [esp + 0xd4]
cmp byte [ecx], 4
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x28], eax
jbe 0x52aaeb
mov edx, dword [esi + 0x1c]
mov dword [esp + 0x20], edx
mov eax, dword [esi + 0x14]
movzx edx, byte [esi + 5]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x38]
movsx eax, word [eax]
add ecx, 1
add ebx, 0x30
cmp ecx, eax
mov dword [esp + 0x38], ecx
jl 0x52a9f0
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x52ab6c
mov ebx, dword [esp + 0xe0]
test ebx, ebx
je 0x52ab6c
mov ecx, dword [esp + 0x44]
mov edx, dword [ebx]
push ecx
mov ecx, dword [esp + 0xe0]
push edx
mov edx, dword [esp + 0x18]
push ecx
push eax
push edx
call fcn.0052a450
add esp, 0x14
test eax, eax
je 0x52ab6c
cmp dword [esp + 0x44], 0
je 0x52b515
mov dword [ebx], 1
jmp 0x52b515
cmp byte [esi + 5], 0
je 0x52ab9d
cmp byte [esi + 7], 0
jne 0x52ab9d
cmp dword [esi + 0x14], 0
jne 0x52ab9d
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.0052ba70
add esp, 8
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], eax
mov byte [esi + 5], 0
xor ebx, ebx
jmp 0x52aba1
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x52abe5
push eax
push edi
call fcn.00527af0
mov edx, dword [edi + 0x44]
mov ecx, dword [esp + 0x28]
push 0xfffffffffffffff7
push eax
mov dword [ecx + 8], edx
mov eax, dword [esp + 0x30]
add dword [edi + 0x44], 1
mov edx, dword [eax]
mov eax, dword [eax + 8]
push 0
add edx, 2
push edx
push eax
push 0x70
push ebp
call fcn.00507050
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esi + 0x44], eax
jmp 0x52abed
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xd4]
cmp byte [eax], 9
jne 0x52ac0f
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
push 0x70
push ebp
call fcn.00504cb0
add esp, 0x10
push ebp
call fcn.00504cd0
push eax
mov dword [esp + 0x94], eax
push esi
mov eax, edi
call fcn.005291d0
add esp, 0xc
test ebx, ebx
je 0x52ac57
mov ebx, dword [edi + 0x44]
lea ecx, [ebx + 1]
mov dword [edi + 0x44], ecx
mov edx, dword [esi]
push edx
push edi
mov dword [esp + 0x40], ebx
call fcn.00527af0
push 0xfffffffffffffff7
push eax
push 0
push 0
push ebx
push 0x70
push ebp
call fcn.00507050
add esp, 0x24
jmp 0x52ac5f
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x44], 0
jne 0x52acfc
cmp dword [esp + 0x14], 0
jne 0x52acfc
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
push 0
lea eax, [esp + 0x24]
push eax
push ecx
push edx
push edi
call fcn.00539850
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x52b515
cmp dword [esp + 0x24], 0
jl 0x52acbe
cmp dword [esp + 0x20], 0
jne 0x52acbe
mov eax, dword [esp + 0x24]
push 1
push eax
push ebp
call fcn.00506a00
add esp, 0xc
mov dword [esi + 0x44], 0xffffffff
mov ecx, dword [esp + 0xe4]
mov edx, dword [ebx + 0x14]
mov eax, dword [ebx + 0x10]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push 0xffffffffffffffff
push edx
push 0
push 0
push eax
push esi
mov eax, edi
call fcn.00527670
push ebx
call fcn.005383c0
add esp, 0x2c
jmp 0x52b493
push ebp
call fcn.00504cd0
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0xb4], eax
mov dword [esp + 0xa0], eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0xa8], eax
mov dword [esp + 0xac], eax
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x18]
add esp, 4
test eax, eax
lea edx, [esp + 0x4c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x98], ecx
mov dword [esp + 0xb0], edx
je 0x52ad7a
mov ecx, dword [eax]
add ecx, 1
mov dword [esp + 0x58], ecx
jmp 0x52ad82
mov dword [esp + 0x58], 0
mov edx, dword [esp + 0x40]
mov dword [esp + 0x54], eax
push edx
lea eax, [esp + 0x98]
push eax
call fcn.0052d1c0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xa0]
push edx
call fcn.0052d1c0
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x52adc6
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0052d1a0
add esp, 8
mov ecx, dword [esp + 0x60]
xor ebx, ebx
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x68], ecx
jle 0x52ae0d
mov dword [esp + 0x18], ebx
lea ebx, [ebx]
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + edx]
mov edx, dword [ecx + 0x10]
push edx
lea eax, [esp + 0x98]
push eax
call fcn.0052d1c0
add dword [esp + 0x20], 0x10
add ebx, 1
add esp, 8
cmp ebx, dword [esp + 0x70]
jl 0x52ade0
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1e], 0
jne 0x52b515
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x52b34f
push ebp
call fcn.00504cd0
push ebp
mov dword [esp + 0x18], eax
call fcn.00504cd0
push ebp
mov dword [esp + 0x88], eax
call fcn.00504cd0
mov edx, dword [esp + 0x20]
mov dword [esp + 0x8c], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x5c], eax
push edx
add eax, 1
push edi
mov dword [edi + 0x44], eax
call fcn.00527af0
mov ecx, dword [esp + 0x64]
push 0xfffffffffffffff7
push eax
push 0
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x78]
push eax
push ecx
push 0x70
push ebp
call fcn.00507050
mov ebx, dword [edi + 0x48]
mov edx, dword [esp + 0x44]
add ebx, 1
lea ecx, [ebx + 1]
mov dword [edi + 0x48], ecx
mov dword [esp + 0xc0], eax
mov eax, dword [edx]
add eax, ecx
lea edx, [eax + 1]
mov dword [esp + 0xa8], edx
mov edx, dword [esp + 0x44]
push ecx
mov dword [edi + 0x48], eax
mov edx, dword [edx]
push 0
add edx, eax
push 0x2f
push ebp
mov dword [esp + 0xc8], ebx
mov dword [esp + 0x58], ecx
mov dword [edi + 0x48], edx
call fcn.00504cb0
add esp, 0x40
push ebx
push 0
push 0x2f
push ebp
call fcn.00504cb0
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x5b
push ebp
call fcn.00504cb0
push ebp
call fcn.004f71f0
mov ecx, dword [esp + 0x3c]
push ecx
push 1
push 0x2f
push ebp
mov dword [esp + 0x68], eax
call fcn.00504cb0
push 0
push 0
push 0x18
push ebp
call fcn.00504cb0
add esp, 0x44
push ebp
call fcn.004f71f0
mov dword [esp + 0x20], eax
add eax, 2
push eax
push ebx
push 0x7b
push ebp
call fcn.00504cb0
push 0
push 0
push 0x18
push ebp
call fcn.00504cb0
add esp, 0x24
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.0052a0a0
cmp dword [esp + 0x30], 0
je 0x52af5c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push 8
add edx, 1
push edx
push eax
push edi
call fcn.0052f4b0
add esp, 0x10
mov ecx, dword [esp + 0xe4]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0xd8]
push edx
mov edx, dword [esp + 0x40]
add eax, 1
push eax
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esi]
push edx
push eax
push 0
push 0
push ecx
push esi
mov eax, edi
call fcn.00527670
push 0
push 0
push 0x18
push ebp
call fcn.00504cb0
push ebp
call fcn.004f71f0
push edi
lea ebx, [esp + 0x8c]
mov dword [esp + 0xc4], eax
call fcn.00529fe0
add esp, 0x40
push 0
push 0
push 0x18
push ebp
call fcn.00504cb0
mov edx, dword [esp + 0x20]
push edx
push ebp
call fcn.00504d20
mov eax, dword [esp + 0x9c]
push eax
push 0
push 0x2e
push ebp
call fcn.00504cb0
mov edx, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
push 0
lea ecx, [esp + 0x40]
push ecx
push edx
push eax
push edi
call fcn.00539850
add esp, 0x3c
test eax, eax
mov dword [esp + 0x34], eax
je 0x52b515
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x52b022
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x52b17b
mov ebx, dword [eax]
mov esi, dword [esp + 0x60]
mov dword [esp + 0x10], ebx
add ebx, 1
test esi, esi
mov dword [esp + 0x30], 1
mov eax, ebx
mov dword [esp + 0x28], ebx
mov edx, ebx
jle 0x52b066
mov ecx, dword [esp + 0x5c]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], edx
jl 0x52b05a
add eax, 1
add edx, 1
add ecx, 0x18
sub esi, 1
jne 0x52b050
mov dword [esp + 0x28], eax
push eax
push edi
call fcn.0052c7b0
mov edx, dword [esp + 0x1c]
mov esi, eax
push 0
push esi
push edx
push edi
mov dword [esp + 0x54], esi
call fcn.0052c520
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
lea ecx, [esi + eax]
push ecx
push edx
push 5
push ebp
call fcn.00504cb0
add esp, 0x28
cmp dword [esp + 0x60], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], 0
jle 0x52b119
mov eax, esi
mov ecx, ebx
lea ebx, [eax + ecx]
mov eax, dword [esp + 0x5c]
xor esi, esi
lea esp, [esp]
mov edx, dword [esp + 0x10]
cmp dword [esi + eax + 0xc], edx
jl 0x52b101
mov ecx, dword [esi + eax + 4]
mov edx, dword [esi + eax + 8]
mov eax, dword [esi + eax]
push 0
push ebx
push ecx
push edx
push eax
push edi
call fcn.0052c1a0
add esp, 0x18
cmp ebx, eax
je 0x52b0f5
push ebx
push eax
push 8
push ebp
call fcn.00504cb0
add esp, 0x10
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x5c]
add ebx, 1
mov ecx, dword [esp + 0x38]
add ecx, 1
add esi, 0x18
cmp ecx, dword [esp + 0x60]
mov dword [esp + 0x38], ecx
jl 0x52b0c0
mov esi, dword [esp + 0x3c]
push edi
call fcn.0052c6f0
mov ecx, dword [esp + 0x2c]
mov ebx, eax
push ebx
push ecx
push esi
push 0x55
push ebp
call fcn.00504be0
mov edx, dword [esp + 0x68]
push ebx
push edx
push 0x68
push ebp
call fcn.00504cb0
push ebx
push edi
call fcn.0052c790
mov eax, dword [esp + 0x58]
push eax
push esi
push edi
call fcn.0052c820
mov ecx, dword [esp + 0x70]
push ecx
call fcn.005383c0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x90]
add esp, 0x40
push edx
push eax
push 0x12
push ebp
call fcn.00504cb0
add esp, 0x10
mov byte [esp + 0x4d], 1
push ebp
call fcn.004f71f0
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x18]
xor esi, esi
add esp, 4
cmp dword [eax], esi
jle 0x52b1e7
mov dword [esp + 0x28], esi
lea ebx, [ebx]
cmp dword [esp + 0x30], 0
lea ecx, [esi + ebx]
push ecx
je 0x52b1be
mov edx, dword [esp + 0x54]
push esi
push edx
push 3
push ebp
call fcn.00504be0
add esp, 0x14
jmp 0x52b1d7
mov byte [esp + 0x50], 1
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x2c]
mov ecx, dword [edx + eax]
push ecx
push edi
call fcn.0052c470
add esp, 0xc
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 0xc
add esi, 1
cmp esi, dword [eax]
jl 0x52b1a0
mov esi, dword [eax]
sub esi, 1
js 0x52b24b
mov edi, edi
test esi, esi
jne 0x52b209
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
push ebx
push edx
add eax, 1
push eax
push 0x44
jmp 0x52b21f
mov ecx, dword [esp + 0x7c]
lea eax, [esi + ebx]
push eax
mov eax, dword [esp + 0x1c]
add eax, 1
push ecx
lea edx, [esi + eax]
push edx
push 0x43
push ebp
call fcn.00504be0
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + esi*4 + 0x10]
add esp, 0x14
push 0xfffffffffffffffc
push ecx
push 0xffffffffffffffff
push ebp
call fcn.00506a60
push 0x10
push ebp
call fcn.00505000
add esp, 0x18
sub esi, 1
jns 0x52b1f0
mov edx, dword [esp + 0x7c]
push edx
push ebp
call fcn.00504d20
mov eax, dword [esp + 0x1c]
add esp, 8
cmp dword [eax], 0
mov dword [esp + 0x10], 0
jle 0x52b29f
mov eax, dword [esp + 0x18]
add eax, 1
sub eax, ebx
mov esi, ebx
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
lea ecx, [ecx]
mov ecx, dword [esp + 0x48]
add ecx, esi
push ecx
push esi
push edi
call fcn.0052c380
mov edx, dword [esp + 0x20]
add ebx, 1
add esp, 0xc
add esi, 1
cmp ebx, dword [edx]
jl 0x52b280
mov ebx, dword [esp + 0x1c]
push ebx
push 0
push 0x2e
push ebp
call fcn.00504cb0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x7b
push ebp
call fcn.00504cb0
mov edx, dword [esp + 0xa4]
push edx
push 0
push 0x2e
push ebp
call fcn.00504cb0
mov eax, dword [esp + 0xb0]
push eax
push ebp
call fcn.00504d20
lea ecx, [esp + 0x84]
push ecx
mov esi, edi
call fcn.0052a0f0
mov edx, dword [esp + 0xc4]
push edx
push 1
push 0x2f
push ebp
call fcn.00504cb0
add esp, 0x4c
cmp dword [esp + 0x30], 0
je 0x52b31f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0x67
push ebp
call fcn.00504cb0
jmp 0x52b339
mov edx, dword [esp + 0x34]
push edx
call fcn.005383c0
mov eax, dword [esp + 0x94]
push 1
push eax
push ebp
call fcn.00506a00
add esp, 0x10
push ebx
push 0
push 0x2e
push ebp
call fcn.00504cb0
add esp, 0x10
jmp 0x52b485
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.00529d60
mov bl, al
test bl, bl
mov byte [esp + 0x34], bl
je 0x52b3aa
mov ecx, dword [esi]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax + 0x10]
mov esi, dword [esp + 0x10]
push ecx
push esi
call fcn.0052ba70
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x52b3aa
cmp byte [esi + 0x1e], 0
jne 0x52b3aa
mov eax, dword [eax + 0xc]
cmp bl, 1
setne dl
mov byte [eax + 8], dl
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
mov byte [eax], 0x95
push edi
lea ebx, [esp + 0x50]
call fcn.00529fe0
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x20]
push edx
push eax
push ecx
push edi
call fcn.00539850
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x52b3e9
mov edx, dword [esp + 0x1c]
push edx
call fcn.0052bda0
add esp, 4
jmp 0x52b515
lea eax, [esp + 0x4c]
push eax
mov esi, edi
call fcn.0052a0f0
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x52b417
cmp byte [esp + 0x34], 0
je 0x52b417
mov ecx, dword [ebx + 0x14]
push ecx
push 0
push 0x5b
push ebp
call fcn.00504cb0
add esp, 0x10
push ebx
call fcn.005383c0
add esp, 4
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.0052a0a0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], 0
je 0x52b44c
push 8
push esi
push eax
push edi
call fcn.0052f4b0
add esp, 0x10
mov edx, dword [esp + 0xe4]
mov eax, dword [esp + 0xd4]
push edx
push esi
push esi
push eax
mov eax, dword [esp + 0xe0]
mov ecx, dword [eax]
push 0xffffffffffffffff
push 0
push 0
push 0
push ecx
push eax
mov eax, edi
call fcn.00527670
mov edx, dword [esp + 0x44]
push edx
call fcn.0052bda0
add esp, 0x2c
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.00504d20
add esp, 8
cmp dword [esp + 0x20], 0
je 0x52b4bc
mov ecx, dword [esp + 0xd4]
mov edx, dword [esp + 0x40]
mov eax, dword [edx]
push ecx
mov ecx, dword [esp + 0xd4]
push eax
push ecx
push edi
mov esi, ebp
call fcn.00527b90
add esp, 0x10
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x52b4dc
mov ecx, dword [esp + 0xdc]
mov eax, dword [eax + 0xc]
lea edx, [ecx + ecx*2]
shl edx, 4
mov byte [edx + eax + 0x1c], 1
mov ecx, dword [esp + 0x8c]
push ecx
push ebp
call fcn.00504d20
mov edx, dword [esp + 0xdc]
add esp, 8
cmp byte [edx], 5
mov dword [esp + 0x3c], 0
jne 0x52b515
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00528110
add esp, 8
pop ebx
pop ebp
mov edx, dword [esp + 0x54]
push edx
call fcn.00504810
mov eax, dword [esp + 0x68]
push eax
call fcn.00504810
mov eax, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
add esp, 0xb8
ret