Function at 0x5483f0
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 0x5484d3
cmp byte [eax + 0x1e], 0
jne 0x5484d3
cmp dword [edi + 0x40], 0
jne 0x5484d3
push 0
push 0
push 0
push 0x15
push edi
call fcn.00544190
add esp, 0x14
test eax, eax
jne 0x5484d3
push 0x2c
push eax
lea eax, [esp + 0x4c]
push eax
call fcn.004afb50
mov edx, dword [esp + 0xd8]
mov ecx, dword [esi + 0x1c]
add esp, 0xc
cmp byte [edx], 4
mov dword [esp + 0x18], ecx
ja 0x548477
mov dword [esi + 0x1c], 0
mov byte [esi + 5], 0
push 0
push esi
push edi
call fcn.005479a0
add esp, 0xc
test eax, eax
jne 0x5490d7
cmp dword [esi + 0x20], 0
mov eax, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
je 0x548505
cmp dword [esi + 0x28], 0
jne 0x5484e1
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 0x5484a4
mov ecx, dword [esp + 8]
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x5484e1
cmp edx, eax
jle 0x5484e1
push str.too_many_terms_in_compound_SELECT
push edi
call fcn.00526230
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.00546f30
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 0x5490d7
cmp dword [edi + 0x40], 0
jg 0x5490d7
mov ecx, eax
mov edx, dword [ecx]
mov eax, dword [esp + 0xcc]
push edx
mov ecx, edi
call fcn.00545200
add esp, 4
test eax, eax
jne 0x5490d7
mov eax, dword [esp + 0xcc]
cmp byte [eax], 4
ja 0x54857b
mov dword [esp + 0x18], 0
push ebp
push edi
call fcn.00546d50
mov ebp, eax
add esp, 4
test ebp, ebp
je 0x5490d6
mov ecx, dword [esp + 0x28]
cmp word [ecx], 0
push ebx
mov dword [esp + 0x38], 0
jle 0x5486de
xor edx, edx
xor ebx, ebx
jmp 0x5485b2
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 0x5486c5
cmp byte [ebx + eax + 0x1c], 0
jne 0x5486c5
mov eax, dword [ebx + eax + 0xc]
cmp eax, edx
je 0x5485f9
mov edx, dword [edi + 0x18c]
mov dword [esp + 0x24], edx
mov dword [edi + 0x18c], eax
mov dword [esp + 0x1c], 1
jmp 0x5485fd
mov dword [esp + 0x1c], edx
push esi
call fcn.00549940
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.005483f0
mov eax, dword [esp + 0x30]
add esp, 0x20
cmp byte [eax + 0x1e], 0
jne 0x5490d5
push esi
call fcn.00549940
sub dword [edi + 0x1a4], eax
add esp, 4
cmp dword [esp + 0x1c], 0
je 0x54868a
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 0x5486ab
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 0x5485b0
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x54872c
mov ebx, dword [esp + 0xe0]
test ebx, ebx
je 0x54872c
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.00548010
add esp, 0x14
test eax, eax
je 0x54872c
cmp dword [esp + 0x44], 0
je 0x5490d5
mov dword [ebx], 1
jmp 0x5490d5
cmp byte [esi + 5], 0
je 0x54875d
cmp byte [esi + 7], 0
jne 0x54875d
cmp dword [esi + 0x14], 0
jne 0x54875d
mov eax, dword [esi]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call fcn.00549630
add esp, 8
mov dword [esi + 0x14], eax
mov dword [esp + 0x14], eax
mov byte [esi + 5], 0
xor ebx, ebx
jmp 0x548761
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x5487a5
push eax
push edi
call fcn.005456b0
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.00524c10
add esp, 0x24
mov dword [esp + 0x24], eax
mov dword [esi + 0x44], eax
jmp 0x5487ad
mov dword [esp + 0x24], 0xffffffff
mov eax, dword [esp + 0xd4]
cmp byte [eax], 9
jne 0x5487cf
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov eax, dword [eax + 4]
push edx
push eax
push 0x70
push ebp
call fcn.00522880
add esp, 0x10
push ebp
call fcn.005228a0
push eax
mov dword [esp + 0x94], eax
push esi
mov eax, edi
call fcn.00546d90
add esp, 0xc
test ebx, ebx
je 0x548817
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.005456b0
push 0xfffffffffffffff7
push eax
push 0
push 0
push ebx
push 0x70
push ebp
call fcn.00524c10
add esp, 0x24
jmp 0x54881f
mov dword [esp + 0x38], 0xffffffff
cmp dword [esp + 0x44], 0
jne 0x5488bc
cmp dword [esp + 0x14], 0
jne 0x5488bc
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.00557410
mov ebx, eax
add esp, 0x14
test ebx, ebx
je 0x5490d5
cmp dword [esp + 0x24], 0
jl 0x54887e
cmp dword [esp + 0x20], 0
jne 0x54887e
mov eax, dword [esp + 0x24]
push 1
push eax
push ebp
call fcn.005245c0
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.00545230
push ebx
call fcn.00555f80
add esp, 0x2c
jmp 0x549053
push ebp
call fcn.005228a0
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 0x54893a
mov ecx, dword [eax]
add ecx, 1
mov dword [esp + 0x58], ecx
jmp 0x548942
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.0054ad80
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0xa0]
push edx
call fcn.0054ad80
mov eax, dword [esp + 0x40]
add esp, 0x10
test eax, eax
je 0x548986
push eax
lea eax, [esp + 0x98]
push eax
call fcn.0054ad60
add esp, 8
mov ecx, dword [esp + 0x60]
xor ebx, ebx
cmp dword [esp + 0x70], ebx
mov dword [esp + 0x68], ecx
jle 0x5489cd
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.0054ad80
add dword [esp + 0x20], 0x10
add ebx, 1
add esp, 8
cmp ebx, dword [esp + 0x70]
jl 0x5489a0
mov ecx, dword [esp + 0x10]
cmp byte [ecx + 0x1e], 0
jne 0x5490d5
xor eax, eax
cmp dword [esp + 0x14], eax
je 0x548f0f
push ebp
call fcn.005228a0
push ebp
mov dword [esp + 0x18], eax
call fcn.005228a0
push ebp
mov dword [esp + 0x88], eax
call fcn.005228a0
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.005456b0
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.00524c10
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.00522880
add esp, 0x40
push ebx
push 0
push 0x2f
push ebp
call fcn.00522880
mov eax, dword [esp + 0x20]
push eax
push 0
push 0x5b
push ebp
call fcn.00522880
push ebp
call fcn.004f5580
mov ecx, dword [esp + 0x3c]
push ecx
push 1
push 0x2f
push ebp
mov dword [esp + 0x68], eax
call fcn.00522880
push 0
push 0
push 0x18
push ebp
call fcn.00522880
add esp, 0x44
push ebp
call fcn.004f5580
mov dword [esp + 0x20], eax
add eax, 2
push eax
push ebx
push 0x7b
push ebp
call fcn.00522880
push 0
push 0
push 0x18
push ebp
call fcn.00522880
add esp, 0x24
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.00547c60
cmp dword [esp + 0x30], 0
je 0x548b1c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
push 8
add edx, 1
push edx
push eax
push edi
call fcn.0054d070
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.00545230
push 0
push 0
push 0x18
push ebp
call fcn.00522880
push ebp
call fcn.004f5580
push edi
lea ebx, [esp + 0x8c]
mov dword [esp + 0xc4], eax
call fcn.00547ba0
add esp, 0x40
push 0
push 0
push 0x18
push ebp
call fcn.00522880
mov edx, dword [esp + 0x20]
push edx
push ebp
call fcn.005228f0
mov eax, dword [esp + 0x9c]
push eax
push 0
push 0x2e
push ebp
call fcn.00522880
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.00557410
add esp, 0x3c
test eax, eax
mov dword [esp + 0x34], eax
je 0x5490d5
mov eax, dword [esp + 0x14]
test eax, eax
jne 0x548be2
mov ecx, dword [esi + 0x14]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x30], eax
jmp 0x548d3b
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 0x548c26
mov ecx, dword [esp + 0x5c]
add ecx, 0xc
lea ebx, [ebx]
cmp dword [ecx], edx
jl 0x548c1a
add eax, 1
add edx, 1
add ecx, 0x18
sub esi, 1
jne 0x548c10
mov dword [esp + 0x28], eax
push eax
push edi
call fcn.0054a370
mov edx, dword [esp + 0x1c]
mov esi, eax
push 0
push esi
push edx
push edi
mov dword [esp + 0x54], esi
call fcn.0054a0e0
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x68]
lea ecx, [esi + eax]
push ecx
push edx
push 5
push ebp
call fcn.00522880
add esp, 0x28
cmp dword [esp + 0x60], 0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x38], 0
jle 0x548cd9
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 0x548cc1
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.00549d60
add esp, 0x18
cmp ebx, eax
je 0x548cb5
push ebx
push eax
push 8
push ebp
call fcn.00522880
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 0x548c80
mov esi, dword [esp + 0x3c]
push edi
call fcn.0054a2b0
mov ecx, dword [esp + 0x2c]
mov ebx, eax
push ebx
push ecx
push esi
push 0x55
push ebp
call fcn.005227b0
mov edx, dword [esp + 0x68]
push ebx
push edx
push 0x68
push ebp
call fcn.00522880
push ebx
push edi
call fcn.0054a350
mov eax, dword [esp + 0x58]
push eax
push esi
push edi
call fcn.0054a3e0
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00555f80
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x90]
add esp, 0x40
push edx
push eax
push 0x12
push ebp
call fcn.00522880
add esp, 0x10
mov byte [esp + 0x4d], 1
push ebp
call fcn.004f5580
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 0x548da7
mov dword [esp + 0x28], esi
lea ebx, [ebx]
cmp dword [esp + 0x30], 0
lea ecx, [esi + ebx]
push ecx
je 0x548d7e
mov edx, dword [esp + 0x54]
push esi
push edx
push 3
push ebp
call fcn.005227b0
add esp, 0x14
jmp 0x548d97
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.0054a030
add esp, 0xc
mov eax, dword [esp + 0x14]
add dword [esp + 0x28], 0xc
add esi, 1
cmp esi, dword [eax]
jl 0x548d60
mov esi, dword [eax]
sub esi, 1
js 0x548e0b
mov edi, edi
test esi, esi
jne 0x548dc9
mov edx, dword [esp + 0x80]
mov eax, dword [esp + 0x18]
push ebx
push edx
add eax, 1
push eax
push 0x44
jmp 0x548ddf
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.005227b0
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.00524620
push 0x10
push ebp
call fcn.00522bd0
add esp, 0x18
sub esi, 1
jns 0x548db0
mov edx, dword [esp + 0x7c]
push edx
push ebp
call fcn.005228f0
mov eax, dword [esp + 0x1c]
add esp, 8
cmp dword [eax], 0
mov dword [esp + 0x10], 0
jle 0x548e5f
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.00549f40
mov edx, dword [esp + 0x20]
add ebx, 1
add esp, 0xc
add esi, 1
cmp ebx, dword [edx]
jl 0x548e40
mov ebx, dword [esp + 0x1c]
push ebx
push 0
push 0x2e
push ebp
call fcn.00522880
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
push eax
push ecx
push 0x7b
push ebp
call fcn.00522880
mov edx, dword [esp + 0xa4]
push edx
push 0
push 0x2e
push ebp
call fcn.00522880
mov eax, dword [esp + 0xb0]
push eax
push ebp
call fcn.005228f0
lea ecx, [esp + 0x84]
push ecx
mov esi, edi
call fcn.00547cb0
mov edx, dword [esp + 0xc4]
push edx
push 1
push 0x2f
push ebp
call fcn.00522880
add esp, 0x4c
cmp dword [esp + 0x30], 0
je 0x548edf
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x50]
push eax
push ecx
push 0x67
push ebp
call fcn.00522880
jmp 0x548ef9
mov edx, dword [esp + 0x34]
push edx
call fcn.00555f80
mov eax, dword [esp + 0x94]
push 1
push eax
push ebp
call fcn.005245c0
add esp, 0x10
push ebx
push 0
push 0x2e
push ebp
call fcn.00522880
add esp, 0x10
jmp 0x549045
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov eax, esi
call fcn.00547920
mov bl, al
test bl, bl
mov byte [esp + 0x34], bl
je 0x548f6a
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.00549630
add esp, 8
test eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
je 0x548f6a
cmp byte [esi + 0x1e], 0
jne 0x548f6a
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.00547ba0
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.00557410
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x548fa9
mov edx, dword [esp + 0x1c]
push edx
call fcn.00549960
add esp, 4
jmp 0x5490d5
lea eax, [esp + 0x4c]
push eax
mov esi, edi
call fcn.00547cb0
add esp, 4
cmp dword [esp + 0x18], 0
jne 0x548fd7
cmp byte [esp + 0x34], 0
je 0x548fd7
mov ecx, dword [ebx + 0x14]
push ecx
push 0
push 0x5b
push ebp
call fcn.00522880
add esp, 0x10
push ebx
call fcn.00555f80
add esp, 4
lea ebx, [esp + 0x4c]
mov eax, edi
call fcn.00547c60
mov eax, dword [esp + 0x30]
test eax, eax
mov esi, dword [esp + 0x24]
mov dword [esp + 0x20], 0
je 0x54900c
push 8
push esi
push eax
push edi
call fcn.0054d070
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.00545230
mov edx, dword [esp + 0x44]
push edx
call fcn.00549960
add esp, 0x2c
mov eax, dword [esp + 0x24]
push eax
push ebp
call fcn.005228f0
add esp, 8
cmp dword [esp + 0x20], 0
je 0x54907c
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.00545750
add esp, 0x10
mov eax, dword [esp + 0xd8]
test eax, eax
je 0x54909c
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.005228f0
mov edx, dword [esp + 0xdc]
add esp, 8
cmp byte [edx], 5
mov dword [esp + 0x3c], 0
jne 0x5490d5
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov ecx, edi
call fcn.00545cd0
add esp, 8
pop ebx
pop ebp
mov edx, dword [esp + 0x54]
push edx
call fcn.005223e0
mov eax, dword [esp + 0x68]
push eax
call fcn.005223e0
mov eax, dword [esp + 0x3c]
add esp, 8
pop edi
pop esi
add esp, 0xb8
ret