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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x6236d1
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x682d00]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x682d00]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x70], eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
mov dword [esp + 0x58], ebx
call eax
test eax, eax
je 0x54fb9a
lea ecx, [esp + 0x10]
call fcn.00516940
mov ecx, ebx
mov dword [esp + 0xd8], 0
xor edi, edi
call fcn.00562690
cmp eax, 3
jne 0x54f1eb
push edi
mov ecx, ebx
call fcn.00563120
cmp eax, 7
jne 0x54f1eb
test byte [ebx + 8], 0xf
jne 0x54f1eb
lea ecx, [esp + 0x9c]
call fcn.005726c0
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x9c]
push edx
mov byte [esp + 0xdc], 1
call fcn.00582680
mov ax, word [esp + 0xbc]
test al, 2
jne 0x54f0c2
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x54f1cf
mov eax, dword [esp + 0xc0]
cmp eax, dword [esp + 0xc4]
jne 0x54f1cf
mov edi, 1
test eax, eax
je 0x54f1cf
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0xa0]
call fcn.0051c850
push eax
lea ecx, [esp + 0x48]
call fcn.005eeba0
mov ecx, dword [esp + 0xc0]
sar ecx, 1
add ecx, dword [esp + 0xb8]
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.00519db0
push 0x2c
mov byte [esp + 0xdc], 2
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x40], eax
mov byte [esp + 0xd8], 3
test eax, eax
je 0x54f14f
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.005407e0
mov esi, eax
jmp 0x54f151
xor esi, esi
mov edx, dword [esp + 0xb8]
mov eax, dword [esp + 0xc0]
lea ecx, [edx + edx]
cmp ecx, eax
mov byte [esp + 0xd8], 2
mov dword [esp + 0x40], esi
jle 0x54f1b1
sub dword [esp + 0x3c], eax
push esi
push 0x24
call fcn.00542690
add esp, 8
mov dword [esp + 0x28], eax
mov byte [esp + 0xd8], 4
test eax, eax
je 0x54f19f
lea edx, [esp + 0x30]
push edx
mov ecx, eax
call fcn.005418b0
jmp 0x54f1a1
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0xdc], 2
call fcn.00542770
push 0
lea ecx, [esp + 0x14]
call fcn.005f5260
lea ecx, [esp + 0x30]
mov dword [eax], esi
mov byte [esp + 0xd8], 1
call fcn.00519ea0
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd8], 0
call fcn.00572710
test edi, edi
jne 0x54f756
lea ecx, [esp + 0x5c]
call fcn.00516940
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 5
call fcn.00516940
test byte [ebx + 8], 0xf
mov byte [esp + 0xd8], 6
jne 0x54f28e
lea ecx, [esp + 0x44]
call fcn.00516940
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
mov byte [esp + 0xdc], 7
call fcn.00562380
xor edi, edi
cmp dword [esp + 0x44], edi
jle 0x54f27d
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + edi*4]
push edx
call fcn.005c9c30
add esp, 4
test eax, eax
mov eax, dword [esp + 0x4c]
je 0x54f267
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x60]
lea esi, [eax + edi*4]
call fcn.005f1b40
mov edx, dword [esi]
mov dword [eax], edx
jmp 0x54f276
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x54f276
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc edi
cmp edi, dword [esp + 0x44]
jl 0x54f238
lea ecx, [esp + 0x44]
mov byte [esp + 0xd8], 6
call fcn.004925b0
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x24], eax
add eax, 0xfffffffe
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], eax
test eax, eax
jle 0x54f5a0
mov ecx, dword [esp + 0x64]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
dec eax
cmp eax, 0x30
ja case.0x54f2d6.2
movzx ecx, byte [eax + 0x54fdb4]
jmp dword [ecx*4 + 0x54fda4]
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xd8], 8
test eax, eax
je 0x54f317
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + ebx*4]
push ecx
mov ecx, eax
call fcn.0051fe20
mov byte [esp + 0xd8], 6
mov dword [esp + 0x20], eax
jmp 0x54f39c
xor eax, eax
mov byte [esp + 0xd8], 6
mov dword [esp + 0x20], eax
jmp 0x54f39c
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xd8], 9
test eax, eax
je 0x54f317
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + ebx*4]
push ecx
mov ecx, eax
call fcn.0051db50
mov byte [esp + 0xd8], 6
mov dword [esp + 0x20], eax
jmp 0x54f39c
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xd8], 0xa
test eax, eax
je 0x54f381
mov ecx, eax
call fcn.0051a860
jmp 0x54f383
xor eax, eax
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + ebx*4]
push eax
mov byte [esp + 0xdc], 6
mov dword [esp + 0x24], eax
call fcn.005c93d0
lea edi, [ebx + 2]
cmp edi, dword [esp + 0x24]
jge 0x54f4b2
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
dec eax
cmp eax, 0x30
ja case.0x54f3c8.2
movzx ecx, byte [eax + 0x54fdf8]
jmp dword [ecx*4 + 0x54fde8]
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0xb
test eax, eax
je 0x54f404
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.0051fe20
mov byte [esp + 0xd8], 6
mov esi, eax
jmp 0x54f483
xor eax, eax
mov byte [esp + 0xd8], 6
mov esi, eax
jmp 0x54f483
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0xc
test eax, eax
je 0x54f404
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.0051db50
mov byte [esp + 0xd8], 6
mov esi, eax
jmp 0x54f483
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0xd
test eax, eax
je 0x54f46a
mov ecx, eax
call fcn.0051a860
jmp 0x54f46c
xor eax, eax
mov edx, dword [esp + 0x64]
mov ecx, dword [edx + edi*4]
push eax
mov byte [esp + 0xdc], 6
mov esi, eax
call fcn.005c93d0
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.005310c0
add esp, 8
test eax, eax
jne 0x54f5c5
test esi, esi
je case.0x54f3c8.2
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
inc edi
cmp edi, dword [esp + 0x24]
jl 0x54f3a9
cmp dword [esp + 0x28], 0
je 0x54f573
cmp edi, dword [esp + 0x24]
jne 0x54f573
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jge 0x54f4ee
nop
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
lea edi, [ecx + esi*4]
push edx
lea ecx, [esp + 0x34]
call fcn.005f1b40
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov dword [eax], ecx
jl 0x54f4d0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x84]
call fcn.00564b60
mov eax, dword [esp + 0x58]
mov cl, byte [eax + 8]
shr cl, 4
and cl, 0xf
movzx edx, cl
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0xe
call fcn.00562700
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x80]
push edx
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.00546130
xor esi, esi
push esi
lea ecx, [esp + 0x34]
call fcn.005f1b40
lea ecx, [esp + 0x80]
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x28], esi
mov byte [esp + 0xd8], 6
call fcn.00563400
mov ecx, dword [esp + 0x20]
test ecx, ecx
je case.0x54f2d6.2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc ebx
cmp ebx, dword [esp + 0x40]
jl 0x54f2b7
cmp dword [esp + 0x1c], 0
jne 0x54f692
cmp dword [esp + 0x28], 0
jne 0x54f5e4
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x58]
mov edx, dword [edx + 0x20]
push eax
call edx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00546130
jmp 0x54f72b
mov dword [esp + 0x28], 1
test esi, esi
je 0x54f4bd
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x54f4bd
xor esi, esi
test ebx, ebx
jle 0x54f60e
lea ebx, [ebx]
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
lea edi, [ecx + esi*4]
push edx
lea ecx, [esp + 0x34]
call fcn.005f1b40
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov dword [eax], ecx
jl 0x54f5f0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x84]
call fcn.00564b60
mov eax, dword [esp + 0x58]
mov cl, byte [eax + 8]
shr cl, 4
and cl, 0xf
movzx edx, cl
push edx
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0xf
call fcn.00562700
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x80]
push edx
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.00546130
push 0
lea ecx, [esp + 0x34]
call fcn.005f1b40
lea ecx, [esp + 0x80]
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xd8], 6
call fcn.00563400
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x24]
jge 0x54f6be
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x64]
push eax
lea ecx, [esp + 0x34]
lea edi, [edx + esi*4]
call fcn.005f1b40
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov dword [eax], ecx
jl 0x54f6a0
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0xa0]
call fcn.00564b60
mov eax, dword [esp + 0x58]
mov cl, byte [eax + 8]
shr cl, 4
and cl, 0xf
movzx edx, cl
push edx
lea ecx, [esp + 0xa0]
mov byte [esp + 0xdc], 0x10
call fcn.00562700
mov esi, dword [esp + 0x2c]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x9c]
push edx
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.00546130
lea ecx, [esp + 0x9c]
mov byte [esp + 0xd8], 6
call fcn.00563400
lea ecx, [esp + 0x5c]
call fcn.00516990
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 5
call fcn.004925b0
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 0
call fcn.004925b0
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
jle 0x54fb60
mov dword [esp + 0x20], ecx
mov ebx, ecx
lea edi, [ecx + 1]
cmp ebx, dword [esp + 0x10]
jge 0x54f788
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
jmp 0x54f792
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
call edx
cmp eax, 0x1a
jne 0x54fa0f
cmp ebx, dword [esp + 0x10]
jge 0x54f7b3
mov eax, dword [esp + 0x18]
lea eax, [eax + ebx*4]
jmp 0x54f7bd
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov esi, dword [eax]
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x2c], esi
call fcn.00562690
cmp eax, 2
jle 0x54fb44
push edi
mov ecx, esi
call fcn.0053feb0
test eax, eax
je 0x54fb44
lea ecx, [esp + 0x30]
call fcn.00516940
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 0x11
call fcn.00516940
push 0x2c
mov byte [esp + 0xdc], 0x12
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0x13
test eax, eax
je 0x54f82d
push esi
mov ecx, eax
call fcn.00540900
mov esi, eax
jmp 0x54f82f
xor esi, esi
mov ecx, dword [esp + 0x5c]
push ecx
lea ecx, [esp + 0x60]
mov byte [esp + 0xdc], 0x12
call fcn.005f1b40
lea edx, [esp + 0x30]
mov dword [eax], esi
push edx
lea eax, [esp + 0x60]
push eax
call fcn.00540d20
add esp, 8
lea ecx, [esp + 0x5c]
call fcn.00516990
fldz
mov eax, dword [esp + 0x30]
fstp qword [esp + 0x44]
xor ecx, ecx
mov edx, 8
or edi, 0xffffffff
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR90.dll_void____cdecl_operator_new___unsigned_int_
xor esi, esi
add esp, 4
cmp dword [esp + 0x30], esi
mov dword [esp + 0x28], eax
jle 0x54f941
jmp 0x54f8a0
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + esi*4]
call fcn.00555770
mov ecx, dword [esp + 0x28]
fst qword [ecx + esi*8]
fld qword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x54f8c8
fstp qword [esp + 0x44]
mov edi, esi
jmp 0x54f8ca
fstp st(0)
inc esi
cmp esi, dword [esp + 0x30]
jl 0x54f8a0
cmp edi, 0xffffffff
je 0x54f941
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0x14
test eax, eax
je 0x54f903
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.00542ce0
mov esi, eax
jmp 0x54f905
xor esi, esi
cmp ebx, dword [esp + 0x10]
mov byte [esp + 0xd8], 0x12
jge 0x54f91c
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
jmp 0x54f926
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov ecx, dword [esp + 0x2c]
mov dword [eax], esi
test ecx, ecx
je 0x54f9cd
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
jmp 0x54f9cd
lea esi, [ebx + 1]
cmp esi, dword [esp + 0x1c]
jge 0x54f991
mov ebx, dword [esp + 0x20]
mov edi, edi
cmp esi, dword [esp + 0x10]
jge 0x54f95f
mov eax, dword [esp + 0x18]
lea edi, [eax + esi*4]
jmp 0x54f96b
push esi
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov edi, eax
cmp ebx, dword [esp + 0x10]
jge 0x54f97b
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi*4 - 4]
jmp 0x54f985
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov edx, dword [edi]
inc esi
inc ebx
cmp esi, dword [esp + 0x1c]
mov dword [eax], edx
jl 0x54f950
cmp dword [esp + 0x2c], 0
je 0x54f9a4
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov esi, dword [esp + 0x1c]
mov edi, 1
sub esi, edi
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], esi
call fcn.005f1b40
sub dword [esp + 0x24], edi
sub dword [esp + 0x20], edi
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x30]
call fcn.00516990
lea ecx, [esp + 0x5c]
mov byte [esp + 0xd8], 0x11
call fcn.004925b0
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], 0
call fcn.004925b0
mov edi, 1
jmp 0x54fb44
cmp ebx, dword [esp + 0x10]
jge 0x54fa1e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx*4]
jmp 0x54fa28
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x1b
je 0x54fb44
cmp dword [ebp + 0x14], 0
je 0x54fb7d
cmp ebx, dword [esp + 0x10]
jge 0x54fa53
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx*4]
jmp 0x54fa5d
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x19
jne 0x54fb7d
cmp ebx, dword [esp + 0x10]
jge 0x54fa7e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx*4]
jmp 0x54fa88
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov esi, dword [eax]
mov ecx, esi
call fcn.00562690
cmp eax, 2
jl 0x54fb44
lea ecx, [esp + 0x80]
call fcn.00550ae0
push esi
lea ecx, [esp + 0x84]
mov byte [esp + 0xdc], 0x15
call fcn.00558b10
mov edx, dword [esi]
mov eax, dword [edx + 0x74]
mov ecx, esi
call eax
push esi
lea ecx, [esp + 0x84]
call fcn.00558b10
mov edx, dword [esi]
mov eax, dword [edx]
push edi
mov ecx, esi
call eax
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0x16
test eax, eax
je 0x54fb07
lea ecx, [esp + 0x80]
push ecx
mov ecx, eax
call fcn.00551150
mov esi, eax
jmp 0x54fb09
xor esi, esi
cmp ebx, dword [esp + 0x10]
mov byte [esp + 0xd8], 0x15
jge 0x54fb20
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
jmp 0x54fb2a
push ebx
lea ecx, [esp + 0x14]
call fcn.005f1b40
lea ecx, [esp + 0x80]
mov dword [eax], esi
mov dword [esp + 0x40], edi
mov byte [esp + 0xd8], 0
call fcn.00556b60
add dword [esp + 0x20], edi
add ebx, edi
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
jl 0x54f779
jmp 0x54fb60
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x54fc0d
mov bl, 0x28
cmp esi, dword [esp + 0x10]
jge 0x54fba1
mov eax, dword [esp + 0x18]
lea eax, [eax + esi*4]
jmp 0x54fbab
lea ecx, [esp + 0x10]
call fcn.00516990
lea ecx, [esp + 0x10]
mov dword [esp + 0xd8], 0xffffffff
call fcn.004925b0
xor eax, eax
jmp 0x54fd7e
push esi
lea ecx, [esp + 0x14]
call fcn.005f1b40
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x1a
jne 0x54fc02
mov ecx, dword [esp + 0x18]
mov edi, dword [ecx + esi*4]
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], bl
test eax, eax
je 0x54fbe3
push edi
mov ecx, eax
call fcn.00540900
jmp 0x54fbe5
xor eax, eax
mov edx, dword [esp + 0x18]
mov byte [esp + 0xd8], 0
mov dword [edx + esi*4], eax
test edi, edi
je 0x54fc02
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x54fb6e
lea ecx, [esp + 0x74]
call fcn.00516940
cmp dword [esp + 0x10], 1
mov bl, 0x29
mov byte [esp + 0xd8], bl
jne 0x54fc6d
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd8], 0x2a
test eax, eax
je 0x54fc52
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
mov ecx, eax
call fcn.00542ce0
mov esi, eax
jmp 0x54fc54
xor esi, esi
mov eax, dword [esp + 0x74]
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xdc], bl
call fcn.005f1b40
mov dword [eax], esi
jmp 0x54fcd1
cmp dword [ebp + 0x14], 0
je 0x54fcbf
cmp dword [esp + 0x40], 0
je 0x54fcbf
lea ecx, [esp + 0x30]
call fcn.00516940
push 0
push 1
push 0
push 1
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x8c]
push eax
mov byte [esp + 0xf4], 0x2b
call fcn.0053fe60
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0xd8], bl
call fcn.004925b0
jmp 0x54fcd1
lea ecx, [esp + 0x74]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00540d20
add esp, 8
mov edi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x70]
xor esi, esi
test edi, edi
je 0x54fd22
cmp dword [esp + 0x74], esi
jle 0x54fd17
push edi
test edi, edi
jle 0x54fcfc
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + esi*4]
push ecx
push ebx
call fcn.00581c10
jmp 0x54fd0d
mov edx, dword [esp + 0x80]
mov eax, dword [edx + esi*4]
push eax
push ebx
call fcn.00581cc0
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x74]
jl 0x54fce4
lea ecx, [esp + 0x74]
call fcn.00516990
jmp 0x54fd4c
cmp dword [esp + 0x74], 0
jle 0x54fd4c
lea esp, [esp]
mov ecx, dword [esp + 0x7c]
mov edx, dword [ebx]
lea edi, [ecx + esi*4]
push edx
mov ecx, ebx
call fcn.005f1b40
mov ecx, dword [edi]
inc esi
mov dword [eax], ecx
cmp esi, dword [esp + 0x74]
jl 0x54fd30
lea ecx, [esp + 0x10]
call fcn.00516990
mov ebx, dword [ebx]
lea ecx, [esp + 0x74]
mov byte [esp + 0xd8], 0
call fcn.004925b0
lea ecx, [esp + 0x10]
mov dword [esp + 0xd8], 0xffffffff
call fcn.004925b0
mov eax, ebx
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.005f9aee
mov esp, ebp
pop ebp
ret 0x10