Function at 0x538c30
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 0x538d13
cmp byte [eax + 0x1e], 0
jne 0x538d13
cmp dword [edi + 0x40], 0
jne 0x538d13
push 0
push 0
push 0
push 0x15
push edi
call fcn.005349d0
add esp, 0x14
test eax, eax
jne 0x538d13
push 0x2c
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.00488f20
mov edx, dword [esp + 0xd8]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp byte [edx], 4
mov dword [esp + 0x18], ecx
ja 0x538cb7
mov dword [esi + 0x1c], 0
mov byte [esi + 5], 0
push 0
push esi
push edi
call fcn.005381e0
add esp, 0xc
test eax, eax
jne 0x539917
cmp dword [esi + 0x20], 0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
je 0x538d45
cmp dword [esi + 0x28], 0
jne 0x538d21
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 0x538ce4
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x538d21
cmp edx, eax
jle 0x538d21
push str.too_many_terms_in_compound_SELECT
push edi
call fcn.00516a70
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.00537770
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 0x539917
cmp dword [edi + 0x40], 0
jg 0x539917
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [esp + 0xcc]
push edx
mov ecx, edi
call fcn.00535a40
add esp, 4
test eax, eax
jne 0x539917
mov eax, dword [esp + 0xcc]
cmp byte [eax], 4
ja 0x538dbb
mov dword [esp + 0x18], 0
push ebp
push edi
call fcn.00537590
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x539916
mov ecx, dword [esp + 0x28]
cmp word [ecx], 0
push ebx
mov dword [esp + 0x38], 0
jle 0x538f1e
xor edx, edx
xor ebx, ebx
jmp 0x538df2
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 0x538f05
cmp byte [ebx + eax + 0x1c], 0
jne 0x538f05
mov eax, dword [ebx + eax + 0xc]
cmp eax, edx
je 0x538e39
mov edx, dword [edi + 0x18c]
mov dword [esp + 0x24], edx
mov dword [edi + 0x18c], eax
mov dword [esp + 0x1c], 1
jmp 0x538e3d
mov dword [esp + 0x1c], edx
push esi
call fcn.0053a180
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.00538c30
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp byte [eax + 0x1e], 0
jne 0x539915
push esi
call fcn.0053a180
sub dword [edi + 0x1a4], eax
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x538eca
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 0x538eeb
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 0x538df0
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x538f6c
mov ebx, dword [esp + 0xe0]
test ebx, ebx
je 0x538f6c
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.00538850
add esp, 0x14
test eax, eax
je 0x538f6c
cmp dword [esp + 0x44], 0
je 0x539915
mov dword [ebx], 1
jmp 0x539915
cmp byte [esi + 5], 0
je 0x538f9d
cmp byte [esi + 7], 0
jne 0x538f9d
cmp dword [esi + 0x14], 0
jne 0x538f9d
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00539e70
add esp, 8
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], eax
mov byte [esi + 5], 0
xor ebx, ebx
jmp 0x538fa1
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x538fe5
push eax
push edi
call fcn.00535ef0
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.00515450
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esi + 0x44], eax
jmp 0x538fed
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xd4]
cmp byte [eax], 9
jne 0x53900f
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
push 0x70
push ebp
call fcn.005130a0
add esp, 0x10
push ebp
call fcn.005130c0
push eax
mov dword [esp + 0x94], eax
push esi
mov eax, edi
call fcn.005375d0
add esp, 0xc
test ebx, ebx
je 0x539057
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.00535ef0
push 0xfffffffffffffff7
push eax
push 0
push 0
push ebx
push 0x70
push ebp
call fcn.00515450
add esp, 0x24
jmp 0x53905f
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x44], 0
jne 0x5390fc
cmp dword [esp + 0x14], 0
jne 0x5390fc
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.00547c50
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x539915
cmp dword [esp + 0x24], 0
jl 0x5390be
cmp dword [esp + 0x20], 0
jne 0x5390be
mov eax, dword [esp + 0x24]
push 1
push eax
push ebp
call fcn.00514e00
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.00535a70
push ebx
call fcn.005467c0
add esp, 0x2c
jmp 0x539893
push ebp
call fcn.005130c0
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 0x53917a
mov ecx, dword [eax]
add ecx, 1
mov dword [esp + 0x58], ecx
jmp 0x539182
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.0053b5c0
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xa0]
push edx
call fcn.0053b5c0
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x5391c6
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0053b5a0
add esp, 8
mov ecx, dword [esp + 0x60]
xor ebx, ebx
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x68], ecx
jle 0x53920d
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.0053b5c0
add dword [esp + 0x20], 0x10
add ebx, 1
add esp, 8
cmp ebx, dword [esp + 0x70]
jl 0x5391e0
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1e], 0
jne 0x539915
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x53974f
push ebp
call fcn.005130c0
push ebp
mov dword [esp + 0x18], eax
call fcn.005130c0
push ebp
mov dword [esp + 0x88], eax
call fcn.005130c0
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.00535ef0
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.00515450
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.005130a0
add esp, 0x40
push ebx
push 0
push 0x2f
push ebp
call fcn.005130a0
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x5b
push ebp
call fcn.005130a0
push ebp
call fcn.00513260
mov ecx, dword [esp + 0x3c]
push ecx
push 1
push 0x2f
push ebp
mov dword [esp + 0x68], eax
call fcn.005130a0
push 0
push 0
push 0x18
push ebp
call fcn.005130a0
add esp, 0x44
push ebp
call fcn.00513260
mov dword [esp + 0x20], eax
add eax, 2
push eax
push ebx
push 0x7b
push ebp
call fcn.005130a0
push 0
push 0
push 0x18
push ebp
call fcn.005130a0
add esp, 0x24
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.005384a0
cmp dword [esp + 0x30], 0
je 0x53935c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push 8
add edx, 1
push edx
push eax
push edi
call fcn.0053d8b0
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.00535a70
push 0
push 0
push 0x18
push ebp
call fcn.005130a0
push ebp
call fcn.00513260
push edi
lea ebx, [esp + 0x8c]
mov dword [esp + 0xc4], eax
call fcn.005383e0
add esp, 0x40
push 0
push 0
push 0x18
push ebp
call fcn.005130a0
mov edx, dword [esp + 0x20]
push edx
push ebp
call fcn.00513110
mov eax, dword [esp + 0x9c]
push eax
push 0
push 0x2e
push ebp
call fcn.005130a0
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.00547c50
add esp, 0x3c
test eax, eax
mov dword [esp + 0x34], eax
je 0x539915
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x539422
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x53957b
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 0x539466
mov ecx, dword [esp + 0x5c]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], edx
jl 0x53945a
add eax, 1
add edx, 1
add ecx, 0x18
sub esi, 1
jne 0x539450
mov dword [esp + 0x28], eax
push eax
push edi
call fcn.0053abb0
mov edx, dword [esp + 0x1c]
mov esi, eax
push 0
push esi
push edx
push edi
mov dword [esp + 0x54], esi
call fcn.0053a920
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
lea ecx, [esi + eax]
push ecx
push edx
push 5
push ebp
call fcn.005130a0
add esp, 0x28
cmp dword [esp + 0x60], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], 0
jle 0x539519
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 0x539501
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.0053a5a0
add esp, 0x18
cmp ebx, eax
je 0x5394f5
push ebx
push eax
push 8
push ebp
call fcn.005130a0
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 0x5394c0
mov esi, dword [esp + 0x3c]
push edi
call fcn.0053aaf0
mov ecx, dword [esp + 0x2c]
mov ebx, eax
push ebx
push ecx
push esi
push 0x55
push ebp
call fcn.00512fd0
mov edx, dword [esp + 0x68]
push ebx
push edx
push 0x68
push ebp
call fcn.005130a0
push ebx
push edi
call fcn.0053ab90
mov eax, dword [esp + 0x58]
push eax
push esi
push edi
call fcn.0053ac20
mov ecx, dword [esp + 0x70]
push ecx
call fcn.005467c0
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x90]
add esp, 0x40
push edx
push eax
push 0x12
push ebp
call fcn.005130a0
add esp, 0x10
mov byte [esp + 0x4d], 1
push ebp
call fcn.00513260
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 0x5395e7
mov dword [esp + 0x28], esi
lea ebx, [ebx]
cmp dword [esp + 0x30], 0
lea ecx, [esi + ebx]
push ecx
je 0x5395be
mov edx, dword [esp + 0x54]
push esi
push edx
push 3
push ebp
call fcn.00512fd0
add esp, 0x14
jmp 0x5395d7
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.0053a870
add esp, 0xc
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 0xc
add esi, 1
cmp esi, dword [eax]
jl 0x5395a0
mov esi, dword [eax]
sub esi, 1
js 0x53964b
mov edi, edi
test esi, esi
jne 0x539609
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
push ebx
push edx
add eax, 1
push eax
push 0x44
jmp 0x53961f
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.00512fd0
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.00514e60
push 0x10
push ebp
call fcn.00513400
add esp, 0x18
sub esi, 1
jns 0x5395f0
mov edx, dword [esp + 0x7c]
push edx
push ebp
call fcn.00513110
mov eax, dword [esp + 0x1c]
add esp, 8
cmp dword [eax], 0
mov dword [esp + 0x10], 0
jle 0x53969f
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.0053a780
mov edx, dword [esp + 0x20]
add ebx, 1
add esp, 0xc
add esi, 1
cmp ebx, dword [edx]
jl 0x539680
mov ebx, dword [esp + 0x1c]
push ebx
push 0
push 0x2e
push ebp
call fcn.005130a0
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x7b
push ebp
call fcn.005130a0
mov edx, dword [esp + 0xa4]
push edx
push 0
push 0x2e
push ebp
call fcn.005130a0
mov eax, dword [esp + 0xb0]
push eax
push ebp
call fcn.00513110
lea ecx, [esp + 0x84]
push ecx
mov esi, edi
call fcn.005384f0
mov edx, dword [esp + 0xc4]
push edx
push 1
push 0x2f
push ebp
call fcn.005130a0
add esp, 0x4c
cmp dword [esp + 0x30], 0
je 0x53971f
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0x67
push ebp
call fcn.005130a0
jmp 0x539739
mov edx, dword [esp + 0x34]
push edx
call fcn.005467c0
mov eax, dword [esp + 0x94]
push 1
push eax
push ebp
call fcn.00514e00
add esp, 0x10
push ebx
push 0
push 0x2e
push ebp
call fcn.005130a0
add esp, 0x10
jmp 0x539885
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.00538160
mov bl, al
test bl, bl
mov byte [esp + 0x34], bl
je 0x5397aa
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.00539e70
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x5397aa
cmp byte [esi + 0x1e], 0
jne 0x5397aa
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.005383e0
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.00547c50
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5397e9
mov edx, dword [esp + 0x1c]
push edx
call fcn.0053a1a0
add esp, 4
jmp 0x539915
lea eax, [esp + 0x4c]
push eax
mov esi, edi
call fcn.005384f0
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x539817
cmp byte [esp + 0x34], 0
je 0x539817
mov ecx, dword [ebx + 0x14]
push ecx
push 0
push 0x5b
push ebp
call fcn.005130a0
add esp, 0x10
push ebx
call fcn.005467c0
add esp, 4
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.005384a0
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], 0
je 0x53984c
push 8
push esi
push eax
push edi
call fcn.0053d8b0
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.00535a70
mov edx, dword [esp + 0x44]
push edx
call fcn.0053a1a0
add esp, 0x2c
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.00513110
add esp, 8
cmp dword [esp + 0x20], 0
je 0x5398bc
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.00535f90
add esp, 0x10
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x5398dc
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.00513110
mov edx, dword [esp + 0xdc]
add esp, 8
cmp byte [edx], 5
mov dword [esp + 0x3c], 0
jne 0x539915
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00536510
add esp, 8
pop ebx
pop ebp
mov edx, dword [esp + 0x54]
push edx
call fcn.00512c00
mov eax, dword [esp + 0x68]
push eax
call fcn.00512c00
mov eax, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
add esp, 0xb8
ret