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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x624fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x1d0
mov eax, dword [0x685e38]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push esi
push edi
mov eax, dword [0x685e38]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov edi, ecx
push ebx
lea ecx, [esp + 0x148]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x60], eax
call fcn.0051aaa0
mov dword [esp + 0x1e8], 0
test esi, esi
je 0x54c4e5
mov dword [esp + 0x24], esi
jmp 0x54c50e
lea ecx, [esp + 0x144]
call fcn.004ae290
movzx ecx, ax
push ecx
call fcn.0052a630
mov ecx, eax
call fcn.0052a800
mov esi, eax
test eax, eax
jne 0x54c50a
mov esi, dword [edi + 0x24]
mov dword [esp + 0x24], esi
mov eax, dword [esp + 0x5c]
test eax, eax
jne 0x54c539
lea ecx, [esp + 0x144]
call fcn.004ae2c0
movzx edx, ax
push edx
call fcn.0052a630
mov ecx, eax
call fcn.0052a800
test eax, eax
jne 0x54c539
mov eax, dword [edi + 0x28]
mov dword [esp + 0x28], eax
test esi, esi
jne 0x54c549
test eax, eax
je 0x54d2a7
mov ecx, ebx
call fcn.00519740
test eax, eax
je 0x54c61c
lea ecx, [esp + 0xd8]
call fcn.00517a80
mov ecx, dword [esp + 0x24]
mov eax, dword [ebx + 0x10]
push ecx
push eax
lea edx, [esp + 0xe0]
push edx
lea eax, [esp + 0x150]
push eax
mov byte [esp + 0x1f8], 1
call fcn.0054b880
xor esi, esi
add esp, 0x10
cmp dword [esp + 0xd8], esi
jle 0x54c5be
jmp 0x54c5a0
mov ecx, dword [esp + 0xe0]
mov eax, dword [ecx + esi*4]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 0x20]
mov ecx, edi
call eax
inc esi
cmp esi, dword [esp + 0xd8]
jl 0x54c5a0
lea ecx, [esp + 0xd8]
call fcn.00517ad0
lea ecx, [esp + 0x124]
push ecx
mov ecx, ebx
call fcn.005198e0
mov eax, dword [eax]
push eax
lea ecx, [esp + 0x148]
mov byte [esp + 0x1ec], 2
call fcn.0051acb0
lea ecx, [esp + 0x124]
mov byte [esp + 0x1e8], 1
call fcn.005ed430
lea ecx, [esp + 0xd8]
mov byte [esp + 0x1e8], 0
call fcn.00405850
mov esi, dword [esp + 0x24]
xor edi, edi
test byte [esp + 0x170], 1
mov dword [esp + 0x60], edi
je 0x54c634
mov dword [esp + 0x60], 1
lea ecx, [esp + 0x144]
call fcn.00518eb0
lea ecx, [esp + 0x144]
mov dword [esp + 0x5c], eax
call fcn.00496700
fild dword [esp + 0x148]
mov edx, dword [esp + 0x154]
mov dword [esp + 0x64], eax
fst qword [esp + 0x4c]
mov dword [esp + 0x38], edx
fild dword [esp + 0x150]
mov dword [esp + 0xb4], edi
fstp qword [esp + 0x10c]
fld st(0)
fadd st(1)
fst qword [esp + 0x124]
fild dword [esp + 0x14c]
fst qword [esp + 0x3c]
fldz
fst qword [esp + 0x104]
fst qword [esp + 0x114]
fst qword [esp + 0xf4]
fstp qword [esp + 0xfc]
cmp esi, edi
je 0x54c735
mov eax, dword [esi + 8]
cmp eax, edi
je 0x54c6c7
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x10], ecx
jmp 0x54c6cb
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
fdivp st(3)
fxch st(2)
fstp qword [esp + 0x104]
cmp eax, edi
je 0x54c6e7
mov edx, dword [eax + 0x34]
mov dword [esp + 0x10], edx
jmp 0x54c6eb
mov dword [esp + 0x10], edi
fild dword [esp + 0x10]
cmp eax, edi
je 0x54c6fe
mov ecx, dword [eax + 0x20]
and ecx, 0xffff0000
jmp 0x54c700
xor ecx, ecx
test ecx, 0x10000
je 0x54c72a
cmp eax, edi
je 0x54c721
fdivr st(2)
mov eax, dword [eax + 0x38]
mov dword [esp + 0xb4], eax
fstp qword [esp + 0xf4]
jmp 0x54c737
xor eax, eax
mov dword [esp + 0xb4], eax
fdivr st(2)
fstp qword [esp + 0xf4]
jmp 0x54c737
fstp st(2)
mov eax, dword [esp + 0x28]
cmp eax, edi
je 0x54c787
mov eax, dword [eax + 8]
cmp eax, edi
je 0x54c74f
mov ecx, dword [eax + 0x30]
mov dword [esp + 0x10], ecx
jmp 0x54c753
mov dword [esp + 0x10], edi
fidiv dword [esp + 0x10]
fstp qword [esp + 0x114]
cmp eax, edi
je 0x54c776
mov edx, dword [eax + 0x34]
mov dword [esp + 0x10], edx
fidiv dword [esp + 0x10]
fstp qword [esp + 0xfc]
jmp 0x54c78b
mov dword [esp + 0x10], edi
fidiv dword [esp + 0x10]
fstp qword [esp + 0xfc]
jmp 0x54c78b
fstp st(1)
fstp st(0)
lea eax, [esp + 0x11c]
push eax
lea ecx, [esp + 0x148]
call fcn.00518d90
lea ecx, [esp + 0x144]
call fcn.004a5b20
fild dword [esp + 0x158]
mov ecx, dword [eax]
mov dword [esp + 0x54], ecx
mov edx, dword [eax + 4]
fstp qword [esp + 0xbc]
fld qword [esp + 0x15c]
mov dword [esp + 0x58], edx
fst qword [esp + 0xec]
mov dword [esp + 0x7c], edi
fldz
mov dword [esp + 0x80], edi
fucompp
fnstsw ax
test ah, 0x44
jp 0x54c7ee
xor edi, edi
jmp 0x54c7f3
mov edi, 1
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x148]
mov dword [esp + 0x14], edi
call fcn.00518f00
push eax
lea ecx, [esp + 0xd0]
call fcn.00522d60
mov bl, byte [esp + 0x16f]
mov byte [esp + 0x1e8], 3
mov byte [esp + 0x16], bl
test edi, edi
je 0x54c854
fld qword [esp + 0xec]
lea ecx, [esp + 0x54]
push ecx
fchs
sub esp, 8
mov eax, esp
lea ecx, [esp + 0xd8]
fstp qword [eax]
mov dword [esp + 0x28], esp
call fcn.00524300
mov al, bl
and al, 1
mov byte [esp + 0x17], al
je 0x54c86f
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0xd0]
call fcn.00524830
and bl, 2
mov byte [esp + 0x15], bl
je 0x54c889
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0xd0]
call fcn.00524880
lea ecx, [esp + 0x84]
push ecx
lea ecx, [esp + 0xd0]
call fcn.00585d70
mov edx, dword [eax + 4]
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0xd0]
mov dword [esp + 0x124], edx
call fcn.00585d70
cmp dword [esp + 0x5c], 0
mov ecx, dword [eax]
mov dword [esp + 0x1c], ecx
fild dword [esp + 0x1c]
mov dword [esp + 0x30], 0
fst qword [esp + 0x84]
fst qword [esp + 0x6c]
fild dword [esp + 0x120]
fstp qword [esp + 0xe4]
jle 0x54ce15
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x24]
jmp 0x54c907
fld qword [esp + 0x84]
mov edx, dword [esp + 0x64]
mov al, byte [ebx + edx]
cmp al, 0xa
jne 0x54c935
fstp qword [esp + 0x6c]
inc ebx
fld qword [esp + 0xbc]
fadd qword [esp + 0x3c]
fsubr qword [esp + 0xe4]
fstp qword [esp + 0xe4]
jmp 0x54ce09
movsx esi, al
fstp st(0)
mov ecx, esi
shr ecx, 7
not cl
and cl, 1
mov byte [esp + 0x23], cl
je 0x54ca06
test edi, edi
je 0x54c9f9
mov ecx, edi
call fcn.00518950
mov ecx, edi
test eax, 0x20000
je 0x54c9ca
lea edx, [esp + 0xb8]
push edx
push esi
call fcn.00528f50
fild dword [esp + 0x148]
mov esi, eax
inc ebx
add esi, esi
cmp dword [esp + 0xb8], 0
mov dword [esp + 0x30], ebx
jle 0x54c9b7
fimul dword [esp + 0xb8]
mov ecx, edi
fstp qword [esp + 0x4c]
call fcn.00518970
mov dword [esp + 0x1c], eax
fild dword [esp + 0x1c]
fldz
fucomp st(1)
fnstsw ax
test ah, 0x44
jnp 0x54c9e8
fdivr qword [esp + 0x4c]
mov eax, dword [0x686b00]
fstp qword [esp + 0x4c]
fld qword [esp + 0x4c]
mov dword [esp + 0x78], eax
jmp 0x54ca46
push esi
call fcn.00528f70
fld qword [esp + 0x4c]
mov esi, eax
mov eax, dword [0x686b00]
add esi, esi
inc ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x78], eax
jmp 0x54ca46
mov eax, dword [0x686b00]
fstp st(0)
fld qword [esp + 0x4c]
mov dword [esp + 0x78], eax
jmp 0x54ca46
fld qword [esp + 0x4c]
inc ebx
mov dword [esp + 0x30], ebx
xor esi, esi
jmp 0x54ca46
mov cl, byte [ebx + edx + 1]
inc ebx
inc ebx
cmp dword [esp + 0x28], 0
mov byte [esp + 0x35], al
mov byte [esp + 0x34], cl
mov dword [esp + 0x30], ebx
je 0x54ca3d
movzx edx, word [esp + 0x34]
mov ecx, dword [esp + 0x28]
push edx
call fcn.00528f70
mov esi, eax
mov eax, dword [0x686b00]
add esi, esi
mov dword [esp + 0x78], eax
jmp 0x54ca3f
xor esi, esi
fld qword [esp + 0x124]
fst qword [esp + 0x134]
test esi, esi
jg 0x54ca5d
fadd qword [esp + 0x10c]
jmp 0x54ce01
xor ecx, ecx
fstp st(0)
mov eax, esi
mov edx, 0x10
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
add esp, 4
mov dword [esp + 0x1c], eax
mov byte [esp + 0x1e8], 4
test eax, eax
je 0x54cab4
push fcn.004f2200
push fcn.005f06c0
push esi
lea ebx, [eax + 4]
push 0x10
push ebx
mov dword [eax], esi
call fcn.005fbaa7
mov dword [esp + 0x2c], ebx
jmp 0x54cabc
mov dword [esp + 0x2c], 0
xor edi, edi
cmp esi, edi
mov byte [esp + 0x1e8], 3
mov dword [esp + 0x68], edi
jle 0x54cdc3
mov ebx, dword [esp + 0x68]
mov eax, dword [esp + 0x78]
test byte [ebx + eax], 0x80
jne 0x54cbca
test edi, edi
je 0x54cbc8
mov ecx, dword [esp + 0x2c]
push edi
push ecx
lea ecx, [esp + 0x9c]
call fcn.0055f940
cmp byte [esp + 0x16], 0
mov byte [esp + 0x1e8], 5
je 0x54cb3d
cmp byte [esp + 0x17], 0
je 0x54cb25
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x98]
call fcn.00562640
cmp byte [esp + 0x15], 0
je 0x54cb3d
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x98]
call fcn.005627a0
cmp dword [esp + 0x10], 0
je 0x54cb67
fld qword [esp + 0xec]
lea ecx, [esp + 0x54]
push ecx
sub esp, 8
mov eax, esp
lea ecx, [esp + 0xa0]
fstp qword [eax]
mov dword [esp + 0x28], esp
call fcn.005618b0
cmp dword [ebp + 0x14], 0
jne 0x54cb90
cmp dword [esp + 0x60], 0
je 0x54cb7b
cmp dword [esp + 0x38], 0
jne 0x54cb90
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x94]
push eax
call edx
jmp 0x54cbb0
mov edi, dword [esp + 0xa0]
push 0
lea ecx, [esp + 0x98]
call fcn.00563d40
mov ecx, dword [esp + 0x1c]
push eax
push edi
call fcn.00548980
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e8], 3
call fcn.00564ab0
mov eax, dword [esp + 0x78]
xor edi, edi
movzx ecx, byte [ebx + eax]
movzx eax, byte [ebx + eax + 1]
and ecx, 0x7f
and eax, 0x7f
cmp byte [esp + 0x23], 0
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x74], eax
fild dword [esp + 0x1c]
je 0x54cc45
fmul qword [esp + 0x104]
sub eax, dword [esp + 0xb4]
mov dword [esp + 0x74], eax
fadd qword [esp + 0x6c]
fldz
fcom st(1)
fnstsw ax
fld qword [0x634650]
test ah, 0x41
jp 0x54cc17
fadd st(2), st(0)
jmp 0x54cc19
fsub st(2), st(0)
fxch st(2)
call fcn.005fbb60
fild dword [esp + 0x74]
mov dword [esp + 0x7c], eax
fmul qword [esp + 0xf4]
fadd qword [esp + 0xe4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x54cc93
faddp st(1)
jmp 0x54cc95
fmul qword [esp + 0x114]
fadd qword [esp + 0x6c]
fldz
fcom st(1)
fnstsw ax
fld qword [0x634650]
test ah, 0x41
jp 0x54cc65
fadd st(2), st(0)
jmp 0x54cc67
fsub st(2), st(0)
fxch st(2)
call fcn.005fbb60
fild dword [esp + 0x74]
mov dword [esp + 0x7c], eax
fmul qword [esp + 0xfc]
fadd qword [esp + 0xe4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 1
jne 0x54cc93
faddp st(1)
jmp 0x54cc95
fsubrp st(1)
call fcn.005fbb60
mov dword [esp + 0x80], eax
mov eax, dword [esp + 0x2c]
mov edx, edi
shl edx, 4
lea ecx, [esp + 0x7c]
lea ebx, [edx + eax]
push ecx
mov ecx, ebx
call fcn.00583a80
test byte [ebx + 2], 8
je 0x54ccc8
mov edx, dword [esp + 0x38]
mov dword [ebx + 4], edx
jmp 0x54cccf
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x68]
add eax, 2
inc edi
cmp eax, esi
mov dword [esp + 0x68], eax
jl 0x54cad2
test edi, edi
je 0x54cdc3
mov ecx, dword [esp + 0x2c]
push edi
push ecx
lea ecx, [esp + 0x9c]
call fcn.0055f940
cmp byte [esp + 0x16], 0
mov byte [esp + 0x1e8], 6
je 0x54cd3c
cmp byte [esp + 0x17], 0
je 0x54cd24
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x98]
call fcn.00562640
cmp byte [esp + 0x15], 0
je 0x54cd3c
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x98]
call fcn.005627a0
cmp dword [esp + 0x10], 0
je 0x54cd66
fld qword [esp + 0xec]
lea ecx, [esp + 0x54]
push ecx
sub esp, 8
mov eax, esp
lea ecx, [esp + 0xa0]
fstp qword [eax]
mov dword [esp + 0x28], esp
call fcn.005618b0
cmp dword [ebp + 0x14], 0
jne 0x54cd8f
cmp dword [esp + 0x60], 0
je 0x54cd7a
cmp dword [esp + 0x38], 0
jne 0x54cd8f
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
mov edx, dword [edx + 0x20]
lea eax, [esp + 0x94]
push eax
call edx
jmp 0x54cdaf
mov esi, dword [esp + 0xa0]
push 0
lea ecx, [esp + 0x98]
call fcn.00563d40
mov ecx, dword [esp + 0x1c]
push eax
push esi
call fcn.00548980
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e8], 3
call fcn.00564ab0
cmp dword [esp + 0x2c], 0
je 0x54cdeb
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax - 4]
lea esi, [eax - 4]
push fcn.004f2200
push ecx
push 0x10
push eax
call fcn.005fba44
push esi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
fld qword [esp + 0x10c]
mov ebx, dword [esp + 0x30]
fadd qword [esp + 0x134]
mov edi, dword [esp + 0x24]
fadd qword [esp + 0x6c]
fstp qword [esp + 0x6c]
cmp ebx, dword [esp + 0x5c]
jl 0x54c900
jmp 0x54ce17
fstp st(0)
test byte [esp + 0x170], 2
je 0x54cf47
lea edx, [esp + 0x144]
push edx
lea ecx, [esp + 0x190]
call fcn.0051aaa0
mov eax, dword [esp + 0x178]
sar eax, 1
mov bl, 7
lea ecx, [esp + 0x124]
mov byte [esp + 0x1e8], bl
mov dword [esp + 0x1c0], eax
call fcn.00528470
lea ecx, [esp + 0x124]
push ecx
lea ecx, [esp + 0x190]
mov byte [esp + 0x1ec], 8
call fcn.00519020
push 4
lea ecx, [esp + 0x128]
call fcn.004f69c0
push eax
lea ecx, [esp + 0x9c]
call fcn.0055f860
lea ecx, [esp + 0x124]
mov byte [esp + 0x1e8], 9
call fcn.004f69c0
push eax
lea ecx, [esp + 0x98]
call fcn.00564dc0
mov edx, dword [esp + 0x178]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x9c]
call fcn.00564b20
cmp dword [ebp + 0x14], 0
je 0x54cef4
mov esi, dword [esp + 0xa0]
push 0
lea ecx, [esp + 0x98]
call fcn.00563d40
mov ecx, dword [esp + 0x1c]
push eax
push esi
call fcn.00548980
jmp 0x54cf07
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x94]
push edx
call eax
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e8], 8
call fcn.00564ab0
lea ecx, [esp + 0x124]
mov byte [esp + 0x1e8], bl
call fcn.00528dc0
lea ecx, [esp + 0x18c]
mov byte [esp + 0x1e8], 3
call fcn.0051ae00
jmp 0x54d293
cmp dword [esp + 0x60], 0
je 0x54d293
cmp dword [ebp + 0x14], 0
jne 0x54d293
lea ecx, [esp + 0x134]
call fcn.00528470
lea ecx, [esp + 0x134]
push ecx
lea ecx, [esp + 0x148]
mov byte [esp + 0x1ec], 0xa
call fcn.00519020
lea edx, [esp + 0x134]
push edx
lea ecx, [esp + 0x190]
call fcn.00541f20
cmp dword [esp + 0x38], 0
mov byte [esp + 0x1e8], 0xb
jne 0x54cff2
mov eax, dword [esp + 0x178]
fld qword [esp + 0x15c]
sub esp, 8
mov dword [esp + 0x1a0], eax
mov dword [esp + 0x1b4], eax
mov eax, esp
lea ecx, [esp + 0x194]
fstp qword [eax]
mov dword [esp + 0x6c], esp
call fcn.00542040
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx]
mov eax, dword [eax + 0x18]
lea edx, [esp + 0x18c]
push edx
call eax
jmp 0x54d26b
lea ecx, [esp + 0x3c]
call fcn.00517a80
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
mov byte [esp + 0x1ec], 0xc
call fcn.005477e0
lea ecx, [esp + 0xbc]
call fcn.00517a80
lea ecx, [esp + 0x84]
mov byte [esp + 0x1e8], 0xd
call fcn.00517a80
push 1
push 0
push 0
push 0
lea ecx, [esp + 0xa4]
mov byte [esp + 0x1f8], 0xe
call fcn.0054f970
xor ebx, ebx
cmp dword [esp + 0x3c], ebx
mov byte [esp + 0x1e8], 0xf
jle 0x54d101
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + ebx*4]
push 0
push 0
push 0
push 0
lea edx, [esp + 0xcc]
push edx
push ecx
lea ecx, [esp + 0xac]
call fcn.00551cb0
xor esi, esi
cmp dword [esp + 0xbc], esi
jle 0x54d0ea
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x64], eax
mov byte [esp + 0x1e8], 0x10
test eax, eax
je 0x54d0c0
mov edx, dword [esp + 0xc4]
mov ecx, dword [edx + esi*4]
push ecx
mov ecx, eax
call fcn.005443a0
mov edi, eax
jmp 0x54d0c2
xor edi, edi
mov edx, dword [esp + 0x84]
push edx
lea ecx, [esp + 0x88]
mov byte [esp + 0x1ec], 0xf
call fcn.005f3cc0
inc esi
mov dword [eax], edi
cmp esi, dword [esp + 0xbc]
jl 0x54d090
lea ecx, [esp + 0xbc]
call fcn.00517ad0
inc ebx
cmp ebx, dword [esp + 0x3c]
jl 0x54d061
lea ecx, [esp + 0x3c]
call fcn.00517ad0
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x88]
push ecx
lea ecx, [esp + 0x194]
call fcn.005423f0
lea ecx, [esp + 0x84]
call fcn.00517ad0
fld qword [esp + 0x15c]
mov edx, dword [esp + 0x18]
fstp qword [esp + 0x124]
mov esi, dword [esp + 0x178]
xor edi, edi
cmp dword [esp + 0x3c], edi
mov dword [0x686bc8], edi
mov dword [0x686bcc], edi
mov dword [edx + 0xc], 1
jle 0x54d215
mov ebx, edx
mov eax, dword [esp + 0x44]
fld qword [esp + 0x124]
mov eax, dword [eax + edi*4]
mov dword [eax + 0xc], esi
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + edi*4]
mov dword [eax + 0x20], esi
sub esp, 8
mov eax, esp
fstp qword [eax]
mov edx, dword [esp + 0x4c]
mov ecx, dword [edx + edi*4]
mov dword [esp + 0x6c], esp
call fcn.00542040
mov eax, dword [esp + 0x44]
mov eax, dword [eax + edi*4]
test eax, eax
je 0x54d1ab
add eax, 0x14
jmp 0x54d1ad
xor eax, eax
push eax
lea ecx, [esp + 0x50]
call fcn.005eff10
mov eax, dword [esp + 0x50]
mov byte [esp + 0x1e8], 0x11
test eax, eax
je 0x54d1e8
add eax, 0xffffffec
mov dword [eax + 0xc], esi
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
cmp eax, dword [ecx]
jne 0x54d1dd
xor eax, eax
jmp 0x54d1e0
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
test eax, eax
jne 0x54d1c7
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + edi*4]
mov edx, dword [ebx]
mov edx, dword [edx + 0x18]
push ecx
mov ecx, ebx
call edx
lea ecx, [esp + 0x4c]
mov byte [esp + 0x1e8], 0xf
call fcn.004f2200
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x54d169
lea ecx, [esp + 0x3c]
call fcn.00517ad0
lea ecx, [esp + 0x94]
mov byte [esp + 0x1e8], 0xe
call fcn.0054fab0
lea ecx, [esp + 0x84]
mov byte [esp + 0x1e8], 0xd
call fcn.00405850
lea ecx, [esp + 0xbc]
mov byte [esp + 0x1e8], 0xc
call fcn.00405850
lea ecx, [esp + 0x3c]
mov byte [esp + 0x1e8], 0xb
call fcn.00405850
lea ecx, [esp + 0x18c]
mov byte [esp + 0x1e8], 0xa
call fcn.00544ad0
lea ecx, [esp + 0x134]
mov byte [esp + 0x1e8], 3
call fcn.00528dc0
lea ecx, [esp + 0xcc]
mov byte [esp + 0x1e8], 0
call fcn.00522dc0
lea ecx, [esp + 0x144]
mov dword [esp + 0x1e8], 0xffffffff
call fcn.0051ae00
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.005fb9ce
mov esp, ebp
pop ebp
ret 0x10