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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5e3b0b
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x632da0]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x632da0]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebx]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x64], eax
mov eax, dword [edx + 0x38]
mov ecx, ebx
mov dword [esp + 0x40], ebx
call eax
test eax, eax
je 0x539c8a
lea ecx, [esp + 0x10]
call fcn.004f8ab0
mov ecx, ebx
mov dword [esp + 0xd0], 0
xor edi, edi
call fcn.0052e500
cmp eax, 3
jne 0x53931b
push edi
mov ecx, ebx
call fcn.0052ef90
cmp eax, 7
jne 0x53931b
test byte [ebx + 8], 0xf
jne 0x53931b
lea ecx, [esp + 0x94]
call fcn.00516c60
mov ecx, dword [ebx + 0xc]
lea edx, [esp + 0x94]
push edx
mov byte [esp + 0xd4], 1
call fcn.0056ada0
mov ax, word [esp + 0xb4]
test al, 2
jne 0x5391f2
cwde
and eax, 0xfffffffb
cmp ax, 2
jne 0x5392ff
mov eax, dword [esp + 0xb8]
cmp eax, dword [esp + 0xbc]
jne 0x5392ff
mov edi, 1
test eax, eax
je 0x5392ff
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x98]
call fcn.004f1c10
push eax
lea ecx, [esp + 0x48]
call fcn.005ba870
mov ecx, dword [esp + 0xb8]
sar ecx, 1
add ecx, dword [esp + 0xb0]
lea edx, [esp + 0x44]
push ecx
push edx
lea ecx, [esp + 0x38]
call fcn.004f6030
push 0x2c
mov byte [esp + 0xd4], 2
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x74], eax
mov byte [esp + 0xd0], 3
test eax, eax
je 0x53927f
lea ecx, [esp + 0x30]
push ecx
mov ecx, eax
call fcn.00513f50
mov esi, eax
jmp 0x539281
xor esi, esi
mov edx, dword [esp + 0xb0]
mov eax, dword [esp + 0xb8]
lea ecx, [edx + edx]
cmp ecx, eax
mov byte [esp + 0xd0], 2
mov dword [esp + 0x74], esi
jle 0x5392e1
sub dword [esp + 0x3c], eax
push esi
push 0x24
call fcn.00515d00
add esp, 8
mov dword [esp + 0x2c], eax
mov byte [esp + 0xd0], 4
test eax, eax
je 0x5392cf
lea edx, [esp + 0x30]
push edx
mov ecx, eax
call fcn.00514f10
jmp 0x5392d1
xor eax, eax
push eax
mov ecx, esi
mov byte [esp + 0xd4], 2
call fcn.00515d90
push 0
lea ecx, [esp + 0x14]
call fcn.00403930
lea ecx, [esp + 0x30]
mov dword [eax], esi
mov byte [esp + 0xd0], 1
call fcn.004f6120
lea ecx, [esp + 0x94]
mov byte [esp + 0xd0], 0
call fcn.00516cb0
test edi, edi
jne 0x53986a
lea ecx, [esp + 0x54]
call fcn.004f8ab0
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 5
call fcn.004f8ab0
test byte [ebx + 8], 0xf
mov byte [esp + 0xd0], 6
jne 0x5393be
lea ecx, [esp + 0x44]
call fcn.004f8ab0
lea eax, [esp + 0x44]
push eax
mov ecx, ebx
mov byte [esp + 0xd4], 7
call fcn.0052e090
xor edi, edi
cmp dword [esp + 0x44], edi
jle 0x5393ad
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + edi*4]
push edx
call fcn.00588370
add esp, 4
test eax, eax
mov eax, dword [esp + 0x4c]
je 0x539397
mov ecx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x58]
lea esi, [eax + edi*4]
call fcn.005be2d0
mov edx, dword [esi]
mov dword [eax], edx
jmp 0x5393a6
mov ecx, dword [eax + edi*4]
test ecx, ecx
je 0x5393a6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc edi
cmp edi, dword [esp + 0x44]
jl 0x539368
lea ecx, [esp + 0x44]
mov byte [esp + 0xd0], 6
call fcn.004f8ae0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x24], eax
add eax, 0xfffffffe
xor ebx, ebx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x74], eax
test eax, eax
jle 0x5396c4
mov ecx, dword [esp + 0x5c]
mov ecx, dword [ecx + ebx*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
dec eax
cmp eax, 0x30
ja case.0x539406.2
movzx ecx, byte [eax + 0x539e98]
jmp dword [ecx*4 + 0x539e88]
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xd0], 8
test eax, eax
je 0x539447
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + ebx*4]
push ecx
mov ecx, eax
call fcn.004f71f0
mov byte [esp + 0xd0], 6
mov dword [esp + 0x20], eax
jmp 0x5394cc
xor eax, eax
mov byte [esp + 0xd0], 6
mov dword [esp + 0x20], eax
jmp 0x5394cc
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xd0], 9
test eax, eax
je 0x539447
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + ebx*4]
push ecx
mov ecx, eax
call fcn.004f29d0
mov byte [esp + 0xd0], 6
mov dword [esp + 0x20], eax
jmp 0x5394cc
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0xd0], 0xa
test eax, eax
je 0x5394b1
mov ecx, eax
call fcn.004effc0
jmp 0x5394b3
xor eax, eax
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + ebx*4]
push eax
mov byte [esp + 0xd4], 6
mov dword [esp + 0x24], eax
call fcn.00584720
lea edi, [ebx + 2]
cmp edi, dword [esp + 0x24]
jge 0x5395e2
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax + edi*4]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
dec eax
cmp eax, 0x30
ja case.0x5394f8.2
movzx ecx, byte [eax + 0x539edc]
jmp dword [ecx*4 + 0x539ecc]
push 0x14
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd0], 0xb
test eax, eax
je 0x539534
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.004f71f0
mov byte [esp + 0xd0], 6
mov esi, eax
jmp 0x5395b3
xor eax, eax
mov byte [esp + 0xd0], 6
mov esi, eax
jmp 0x5395b3
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd0], 0xc
test eax, eax
je 0x539534
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.004f29d0
mov byte [esp + 0xd0], 6
mov esi, eax
jmp 0x5395b3
push 0x24
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd0], 0xd
test eax, eax
je 0x53959a
mov ecx, eax
call fcn.004effc0
jmp 0x53959c
xor eax, eax
mov edx, dword [esp + 0x5c]
mov ecx, dword [edx + edi*4]
push eax
mov byte [esp + 0xd4], 6
mov esi, eax
call fcn.00584720
mov eax, dword [esp + 0x20]
push esi
push eax
call fcn.00505360
add esp, 8
test eax, eax
jne 0x5396e9
test esi, esi
je case.0x5394f8.2
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
inc edi
cmp edi, dword [esp + 0x24]
jl 0x5394d9
cmp dword [esp + 0x2c], 0
je 0x539697
cmp edi, dword [esp + 0x24]
jne 0x539697
mov esi, dword [esp + 0x1c]
cmp esi, ebx
jge 0x53961e
nop
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
lea edi, [ecx + esi*4]
push edx
lea ecx, [esp + 0x34]
call fcn.005be2d0
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov dword [eax], ecx
jl 0x539600
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x7c]
call fcn.005303f0
mov eax, dword [esp + 0x40]
mov cl, byte [eax + 8]
shr cl, 4
and cl, 0xf
movzx edx, cl
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 0xe
call fcn.0052e570
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x78]
push edx
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.00566a00
xor esi, esi
push esi
lea ecx, [esp + 0x34]
call fcn.005be2d0
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x2c], esi
mov byte [esp + 0xd0], 6
call fcn.0052f270
mov ecx, dword [esp + 0x20]
test ecx, ecx
je case.0x539406.2
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
inc ebx
cmp ebx, dword [esp + 0x74]
jl 0x5393e7
cmp dword [esp + 0x1c], 0
jne 0x5397a6
cmp dword [esp + 0x2c], 0
jne 0x539708
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov edx, dword [ecx]
mov eax, dword [esp + 0x40]
mov edx, dword [edx + 0x20]
push eax
call edx
mov ecx, dword [esi + 8]
lea eax, [esp + 0x10]
push eax
call fcn.00566a00
jmp 0x53983f
mov dword [esp + 0x2c], 1
test esi, esi
je 0x5395ed
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
jmp 0x5395ed
xor esi, esi
test ebx, ebx
jle 0x53972e
mov edi, edi
mov ecx, dword [esp + 0x5c]
mov edx, dword [esp + 0x30]
lea edi, [ecx + esi*4]
push edx
lea ecx, [esp + 0x34]
call fcn.005be2d0
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov dword [eax], ecx
jl 0x539710
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x7c]
call fcn.005303f0
mov eax, dword [esp + 0x40]
mov cl, byte [eax + 8]
shr cl, 4
and cl, 0xf
movzx edx, cl
push edx
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 0xf
call fcn.0052e570
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x78]
push edx
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.00566a00
push 0
lea ecx, [esp + 0x34]
call fcn.005be2d0
lea ecx, [esp + 0x78]
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], ebx
mov byte [esp + 0xd0], 6
call fcn.0052f270
mov esi, dword [esp + 0x1c]
cmp esi, dword [esp + 0x24]
jge 0x5397d2
mov ebx, dword [esp + 0x24]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x5c]
push eax
lea ecx, [esp + 0x34]
lea edi, [edx + esi*4]
call fcn.005be2d0
mov ecx, dword [edi]
inc esi
cmp esi, ebx
mov dword [eax], ecx
jl 0x5397b4
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x98]
call fcn.005303f0
mov eax, dword [esp + 0x40]
mov cl, byte [eax + 8]
shr cl, 4
and cl, 0xf
movzx edx, cl
push edx
lea ecx, [esp + 0x98]
mov byte [esp + 0xd4], 0x10
call fcn.0052e570
mov esi, dword [esp + 0x28]
mov ecx, dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x20]
lea edx, [esp + 0x94]
push edx
call eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esi + 8]
call fcn.00566a00
lea ecx, [esp + 0x94]
mov byte [esp + 0xd0], 6
call fcn.0052f270
lea ecx, [esp + 0x54]
call fcn.004f8b10
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 5
call fcn.004f8ae0
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0
call fcn.004f8ae0
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], ecx
jle 0x539c50
mov dword [esp + 0x20], ecx
mov ebx, ecx
lea edi, [ecx + 1]
cmp ebx, dword [esp + 0x10]
jge 0x53989c
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
jmp 0x5398a6
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov ecx, dword [eax]
mov eax, dword [ecx]
mov edx, dword [eax + 0x5c]
call edx
cmp eax, 0x1a
jne 0x539b0f
cmp ebx, dword [esp + 0x10]
jge 0x5398c7
mov eax, dword [esp + 0x18]
lea eax, [eax + ebx*4]
jmp 0x5398d1
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov esi, dword [eax]
push edi
mov ecx, esi
mov dword [esp + 0x2c], esi
call fcn.00562910
test eax, eax
je 0x539c35
lea ecx, [esp + 0x30]
call fcn.004f8ab0
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0x11
call fcn.004f8ab0
push 0x2c
mov byte [esp + 0xd4], 0x12
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd0], 0x13
test eax, eax
je 0x53992f
push esi
mov ecx, eax
call fcn.00514070
mov esi, eax
jmp 0x539931
xor esi, esi
mov ecx, dword [esp + 0x54]
push ecx
lea ecx, [esp + 0x58]
mov byte [esp + 0xd4], 0x12
call fcn.005be2d0
lea edx, [esp + 0x30]
mov dword [eax], esi
push edx
lea eax, [esp + 0x58]
push eax
call fcn.00514550
add esp, 8
lea ecx, [esp + 0x54]
call fcn.004f8b10
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 + 0x40], eax
jle 0x539a41
lea ebx, [ebx]
mov eax, dword [esp + 0x38]
mov ecx, dword [eax + esi*4]
call fcn.00525940
mov ecx, dword [esp + 0x40]
fst qword [ecx + esi*8]
fld qword [esp + 0x44]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x5399c8
fstp qword [esp + 0x44]
mov edi, esi
jmp 0x5399ca
fstp st(0)
inc esi
cmp esi, dword [esp + 0x30]
jl 0x5399a0
cmp edi, 0xffffffff
je 0x539a41
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd0], 0x14
test eax, eax
je 0x539a03
mov edx, dword [esp + 0x38]
mov ecx, dword [edx + edi*4]
push ecx
mov ecx, eax
call fcn.005164a0
mov esi, eax
jmp 0x539a05
xor esi, esi
cmp ebx, dword [esp + 0x10]
mov byte [esp + 0xd0], 0x12
jge 0x539a1c
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
jmp 0x539a26
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov ecx, dword [esp + 0x28]
mov dword [eax], esi
test ecx, ecx
je 0x539acd
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
jmp 0x539acd
lea esi, [ebx + 1]
cmp esi, dword [esp + 0x1c]
jge 0x539a91
mov ebx, dword [esp + 0x20]
mov edi, edi
cmp esi, dword [esp + 0x10]
jge 0x539a5f
mov eax, dword [esp + 0x18]
lea edi, [eax + esi*4]
jmp 0x539a6b
push esi
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov edi, eax
cmp ebx, dword [esp + 0x10]
jge 0x539a7b
mov ecx, dword [esp + 0x18]
lea eax, [ecx + esi*4 - 4]
jmp 0x539a85
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov edx, dword [edi]
inc esi
inc ebx
cmp esi, dword [esp + 0x1c]
mov dword [eax], edx
jl 0x539a50
cmp dword [esp + 0x28], 0
je 0x539aa4
mov ecx, dword [esp + 0x28]
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.005be2d0
sub dword [esp + 0x24], edi
sub dword [esp + 0x20], edi
mov ebx, dword [esp + 0x24]
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x40]
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete_void__
add esp, 4
lea ecx, [esp + 0x30]
call fcn.004f8b10
lea ecx, [esp + 0x54]
mov byte [esp + 0xd0], 0x11
call fcn.004f8ae0
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], 0
call fcn.004f8ae0
mov edi, 1
jmp 0x539c35
cmp ebx, dword [esp + 0x10]
jge 0x539b1e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx*4]
jmp 0x539b28
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x1b
je 0x539c35
cmp dword [ebp + 0x14], 0
je 0x539c6d
cmp ebx, dword [esp + 0x10]
jge 0x539b53
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx*4]
jmp 0x539b5d
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x19
jne 0x539c6d
cmp ebx, dword [esp + 0x10]
jge 0x539b7e
mov ecx, dword [esp + 0x18]
lea eax, [ecx + ebx*4]
jmp 0x539b88
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov esi, dword [eax]
mov ecx, esi
call fcn.0052e500
cmp eax, 2
jl 0x539c35
lea ecx, [esp + 0x78]
call fcn.00520f90
push esi
lea ecx, [esp + 0x7c]
mov byte [esp + 0xd4], 0x15
call fcn.00528cc0
mov edx, dword [esi]
mov eax, dword [edx + 0x74]
mov ecx, esi
call eax
push esi
lea ecx, [esp + 0x7c]
call fcn.00528cc0
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 + 0xd0], 0x16
test eax, eax
je 0x539bfb
lea ecx, [esp + 0x78]
push ecx
mov ecx, eax
call fcn.00521600
mov esi, eax
jmp 0x539bfd
xor esi, esi
cmp ebx, dword [esp + 0x10]
mov byte [esp + 0xd0], 0x15
jge 0x539c14
mov edx, dword [esp + 0x18]
lea eax, [edx + ebx*4]
jmp 0x539c1e
push ebx
lea ecx, [esp + 0x14]
call fcn.005be2d0
lea ecx, [esp + 0x78]
mov dword [eax], esi
mov dword [esp + 0x2c], edi
mov byte [esp + 0xd0], 0
call fcn.00526cc0
add dword [esp + 0x20], edi
add ebx, edi
cmp ebx, dword [esp + 0x1c]
mov dword [esp + 0x24], ebx
jl 0x53988d
lea esp, [esp]
xor esi, esi
cmp dword [esp + 0x1c], esi
jle 0x539cfd
mov bl, 0x28
cmp esi, dword [esp + 0x10]
jge 0x539c91
mov eax, dword [esp + 0x18]
lea eax, [eax + esi*4]
jmp 0x539c9b
lea ecx, [esp + 0x10]
call fcn.004f8b10
lea ecx, [esp + 0x10]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004f8ae0
xor eax, eax
jmp 0x539e61
push esi
lea ecx, [esp + 0x14]
call fcn.005be2d0
mov ecx, dword [eax]
mov edx, dword [ecx]
mov eax, dword [edx + 0x5c]
call eax
cmp eax, 0x1a
jne 0x539cf2
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 + 0xd0], bl
test eax, eax
je 0x539cd3
push edi
mov ecx, eax
call fcn.00514070
jmp 0x539cd5
xor eax, eax
mov edx, dword [esp + 0x18]
mov byte [esp + 0xd0], 0
mov dword [edx + esi*4], eax
test edi, edi
je 0x539cf2
mov eax, dword [edi]
mov edx, dword [eax]
push 1
mov ecx, edi
call edx
inc esi
cmp esi, dword [esp + 0x1c]
jl 0x539c5e
lea ecx, [esp + 0x68]
call fcn.004f8ab0
cmp dword [esp + 0x10], 1
mov bl, 0x29
mov byte [esp + 0xd0], bl
jne 0x539d5d
push 0x2c
call sub.MSVCR90.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x44], eax
mov byte [esp + 0xd0], 0x2a
test eax, eax
je 0x539d42
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx]
push edx
mov ecx, eax
call fcn.005164a0
mov esi, eax
jmp 0x539d44
xor esi, esi
mov eax, dword [esp + 0x68]
push eax
lea ecx, [esp + 0x6c]
mov byte [esp + 0xd4], bl
call fcn.005be2d0
mov dword [eax], esi
jmp 0x539dc1
cmp dword [ebp + 0x14], 0
je 0x539daf
cmp dword [esp + 0x2c], 0
je 0x539daf
lea ecx, [esp + 0x30]
call fcn.004f8ab0
push 0
push 1
push 0
push 1
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xec], 0x2b
call fcn.0056a700
add esp, 0x1c
lea ecx, [esp + 0x30]
mov byte [esp + 0xd0], bl
call fcn.004f8ae0
jmp 0x539dc1
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00514550
add esp, 8
mov edi, dword [ebp + 0x10]
mov ebx, dword [esp + 0x64]
xor esi, esi
test edi, edi
je 0x539e0c
cmp dword [esp + 0x68], esi
jle 0x539e01
push edi
test edi, edi
jle 0x539de9
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + esi*4]
push ecx
push ebx
call fcn.00575380
jmp 0x539df7
mov edx, dword [esp + 0x74]
mov eax, dword [edx + esi*4]
push eax
push ebx
call fcn.00575430
inc esi
add esp, 0xc
cmp esi, dword [esp + 0x68]
jl 0x539dd4
lea ecx, [esp + 0x68]
call fcn.004f8b10
jmp 0x539e2f
cmp dword [esp + 0x68], 0
jle 0x539e2f
mov ecx, dword [esp + 0x70]
mov edx, dword [ebx]
lea edi, [ecx + esi*4]
push edx
mov ecx, ebx
call fcn.005be2d0
mov ecx, dword [edi]
inc esi
mov dword [eax], ecx
cmp esi, dword [esp + 0x68]
jl 0x539e13
lea ecx, [esp + 0x10]
call fcn.004f8b10
mov ebx, dword [ebx]
lea ecx, [esp + 0x68]
mov byte [esp + 0xd0], 0
call fcn.004f8ae0
lea ecx, [esp + 0x10]
mov dword [esp + 0xd0], 0xffffffff
call fcn.004f8ae0
mov eax, ebx
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.005bf276
mov esp, ebp
pop ebp
ret 0x10