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

Disassembly:
push 0xffffffffffffffff
push 0x5c5330
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
push ebx
push ebp
push esi
mov ebp, 0x5e27fc
xor esi, esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov ebx, dword [esp + 0x94]
mov dword [esp + 0x84], esi
cmp ebx, esi
jne 0x421597
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
jmp 0x4215c9
lea edi, [ebx*4]
push edi
call sub.mfc42u.dll_operatornew
mov edx, eax
mov ecx, edi
mov dword [esp + 0x48], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x48], ebx
mov dword [esp + 0x54], ebp
mov dword [esp + 0x58], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
cmp ebx, esi
mov byte [esp + 0x84], 1
jne 0x4215f3
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
jmp 0x421616
lea eax, [ebx*4]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x58], eax
push ebx
push eax
call fcn.005463a0
mov dword [esp + 0x60], ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x68], ebp
xor edx, edx
xor ebp, ebp
mov dword [esp + 0x78], edx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x74], edx
mov dword [esp + 0x70], edx
mov esi, dword [esp + 0x90]
mov byte [esp + 0x84], 2
imul esi, ebx
cmp esi, edx
jne 0x42164a
mov dword [esp + 0x74], edx
jmp 0x42166d
lea ecx, [esi*4]
push ecx
call sub.mfc42u.dll_operatornew
add esp, 4
mov ebp, eax
mov dword [esp + 0x6c], ebp
push esi
push eax
call fcn.005463a0
mov dword [esp + 0x74], esi
mov edx, esi
mov esi, dword [esp + 0x8c]
mov ecx, edx
mov edi, ebp
mov dword [esp + 0x70], edx
test edx, edx
rep movsd dword es:[edi], dword [esi]
mov dword [esp + 0x1c], 0
jle 0x42169e
mov ecx, dword [esp + 0x1c]
mov eax, ebp
mov ebp, dword [eax]
add eax, 4
add ecx, ebp
dec edx
jne 0x421690
mov dword [esp + 0x1c], ecx
mov eax, dword [esp + 0x90]
lea edx, [ebx*4]
imul eax, dword [esp + 0xa4]
mov dword [esp + 0x10], eax
xor eax, eax
mov dword [esp + 0xa4], eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x38], edx
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x90]
mov eax, dword [esp + 0x98]
xor ecx, ecx
cmp edx, ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x18], ecx
jle 0x421987
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], ecx
jmp 0x42170c
mov eax, dword [esp + 0x98]
cmp eax, 1
mov dword [esp + 0x24], eax
jl 0x42196d
xor edi, edi
xor ecx, ecx
test ebx, ebx
jle 0x421954
mov eax, dword [esp + 0x90]
mov esi, dword [esp + 0x28]
mov ebx, dword [esp + 0x94]
lea ebp, [eax*4]
mov eax, dword [esi]
add esi, ebp
cdq
idiv dword [esp + 0x24]
mov edx, dword [esp + 0x44]
mov dword [edx + ecx*4], eax
mov eax, dword [esp + 0x44]
mov edx, dword [eax + ecx*4]
add edi, edx
inc ecx
cmp ecx, ebx
jl 0x42173e
test edi, edi
je 0x421954
mov ebx, edi
mov eax, dword [esp + 0x8c]
imul ebx, dword [esp + 0x98]
cmp ebx, eax
jl 0x421954
xor ebp, ebp
xor esi, esi
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
push 0
push ecx
mov ecx, dword [esp + 0x74]
push esi
push edx
push eax
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004213d0
add ebp, eax
mov eax, dword [esp + 0x90]
inc esi
cmp esi, eax
jl 0x421781
mov esi, dword [esp + 0x98]
cmp ebp, esi
jge 0x421883
mov eax, dword [esp + 0x10]
xor esi, esi
cdq
xor ebp, ebp
mov ecx, dword [esp + 0x94]
idiv dword [esp + 0x90]
lea ecx, [ecx + ecx*4]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x3c], eax
jmp 0x4217f0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x3c]
cmp ecx, eax
jge 0x4217f6
mov eax, ecx
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x98]
push edx
push ebp
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004213d0
add esi, eax
inc ebp
cmp ebp, ebx
jl 0x4217e8
cmp esi, 0x17
jl 0x42182e
mov esi, 0x17
jmp 0x421833
cmp esi, 1
jl 0x42184b
mov edx, dword [esp + 0x9c]
lea eax, [edx + esi*4]
cmp dword [eax], 0
jne 0x42184b
dec esi
sub eax, 4
cmp esi, 1
jge 0x42183d
test esi, esi
jle 0x42187c
mov ecx, dword [esp + 0x98]
mov eax, esi
cmp esi, ecx
jl 0x421861
imul eax, edi
jmp 0x421885
mov edx, dword [esp + 0x94]
imul eax, edi
imul edx, ecx
sub eax, edx
cmp eax, 1
jge 0x421885
mov eax, 1
jmp 0x421885
mov eax, esi
imul eax, edi
jmp 0x421885
mov eax, ebx
mov ecx, dword [esp + 0x8c]
cmp eax, ecx
jle 0x4218d4
mov dword [esp + 0x18], esi
imul esi, edi
mov eax, dword [esp + 0x48]
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x94], esi
call fcn.0046d900
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
test edx, edx
je 0x421954
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x4218c2
jmp 0x421954
jne 0x421954
mov eax, dword [esp + 0x18]
cmp esi, eax
jle 0x42191b
mov ecx, dword [esp + 0x48]
imul edi, eax
push 0xffffffffffffffff
push ecx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x94], edi
mov dword [esp + 0x20], esi
call fcn.0046d900
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
test edx, edx
je 0x421954
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x42190c
jmp 0x421954
jne 0x421954
imul edi, eax
mov edx, dword [esp + 0x48]
push 0xffffffffffffffff
push edx
lea ecx, [esp + 0x5c]
mov dword [esp + 0x94], edi
call fcn.0046d900
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
test edx, edx
je 0x421954
mov esi, dword [ecx]
add ecx, 4
mov dword [eax], esi
add eax, 4
dec edx
jne 0x421947
mov eax, dword [esp + 0x24]
mov ebx, dword [esp + 0x94]
dec eax
cmp eax, 1
mov dword [esp + 0x24], eax
jge 0x421719
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add ecx, 4
dec eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x34], eax
jne 0x421705
mov eax, dword [esp + 0x90]
xor edi, edi
test eax, eax
jle 0x421a87
mov ebp, dword [esp + 0x18]
lea eax, [ebx + ebx*4]
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
cdq
idiv ebx
cmp ecx, eax
jge 0x4219bb
mov eax, ecx
mov ecx, dword [esp + 0x58]
mov edx, dword [esp + 0x94]
push eax
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x1c]
push edi
push edx
push ebx
push eax
call fcn.004213d0
mov esi, eax
test esi, esi
jle 0x421a2d
cmp esi, ebp
jge 0x421a38
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0xa8]
mov eax, dword [esp + 0x58]
add ecx, edi
push eax
push esi
mov dword [edx + ecx*4], esi
mov ecx, dword [esp + 0x9c]
mov edx, dword [esp + 0x74]
push edi
push ecx
mov ecx, dword [esp + 0x24]
push ebx
push edx
call fcn.004214e0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x10]
sub edx, eax
sub ecx, eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x10], ecx
sub ebp, esi
inc edi
cmp edi, ebx
jl 0x4219aa
jmp 0x421a80
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0xa8]
mov edx, dword [esp + 0x58]
add eax, edi
push edx
push ebp
mov dword [ecx + eax*4], ebp
mov eax, dword [esp + 0x9c]
mov ecx, dword [esp + 0x74]
push edi
push eax
push ebx
push ecx
mov ecx, dword [esp + 0x2c]
call fcn.004214e0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x10]
sub edx, eax
sub ecx, eax
mov dword [esp + 0x8c], edx
mov dword [esp + 0x10], ecx
mov ebx, dword [esp + 0x94]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x30]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x8c]
test ecx, ecx
je 0x421af7
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0xa4]
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
sub eax, ecx
mov ecx, dword [esp + 0x90]
inc ebp
add edi, ecx
add esi, edx
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0xa4], ebp
mov dword [esp + 0x20], edi
mov dword [esp + 0x30], esi
jle 0x421af7
mov eax, dword [esp + 0xa0]
mov edx, ebp
cmp edx, eax
jl 0x4216d4
mov esi, dword [esp + 0xa4]
mov eax, dword [esp + 0x44]
imul esi, ebx
xor edi, edi
mov dword [esp + 0x98], esi
cmp esi, edi
jne 0x421b30
cmp eax, edi
je 0x421b23
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
mov dword [esp + 0x44], edi
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], edi
jmp 0x421c23
cmp eax, edi
jne 0x421b5c
lea eax, [esi*4]
push eax
call sub.mfc42u.dll_operatornew
add esp, 4
mov dword [esp + 0x44], eax
push esi
push eax
call fcn.005463a0
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
jmp 0x421c23
mov ecx, dword [esp + 0x4c]
cmp esi, ecx
jg 0x421b83
mov ecx, dword [esp + 0x48]
cmp esi, ecx
jle 0x421b7a
mov edx, esi
lea eax, [eax + ecx*4]
sub edx, ecx
push edx
push eax
call fcn.005463a0
mov dword [esp + 0x48], esi
jmp 0x421c23
mov eax, dword [esp + 0x50]
cmp eax, edi
jne 0x421bb0
mov eax, dword [esp + 0x48]
cdq
and edx, 7
add eax, edx
sar eax, 3
cmp eax, 4
jge 0x421ba4
mov eax, 4
jmp 0x421bb0
cmp eax, 0x400
jle 0x421bb0
mov eax, 0x400
add eax, ecx
cmp esi, eax
mov dword [esp + 0x94], eax
jl 0x421bc4
mov dword [esp + 0x94], esi
mov ecx, dword [esp + 0x94]
lea edx, [ecx*4]
push edx
call sub.mfc42u.dll_operatornew
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x48]
mov ebp, eax
add esp, 4
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x48]
mov ecx, esi
sub ecx, eax
lea edx, [ebp + eax*4]
push ecx
push edx
call fcn.005463a0
mov eax, dword [esp + 0x44]
push eax
call sub.mfc42u.dll_operatordelete
mov ecx, dword [esp + 0x98]
add esp, 4
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ecx
test ebx, ebx
jle 0x421cab
mov edx, dword [esp + 0xa4]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x94], ecx
xor edi, edi
lea eax, [edx*4]
mov dword [esp + 0x90], ebx
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xa4]
test eax, eax
jle 0x421c80
mov edx, dword [esp + 0xa4]
mov esi, dword [esp + 0x38]
mov eax, edi
mov ebp, dword [esp + 0x44]
mov ebx, dword [ecx]
add ecx, esi
mov dword [eax + ebp], ebx
add eax, 4
dec edx
jne 0x421c6f
mov esi, dword [esp + 0xa8]
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x90]
add edi, esi
add ecx, 4
dec eax
mov dword [esp + 0x94], ecx
mov dword [esp + 0x90], eax
jne 0x421c57
mov ecx, dword [esp + 0x98]
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x68], 0x5e27fc
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
test eax, eax
mov byte [esp + 0x78], 3
pop ebx
je 0x421ce1
push eax
call sub.mfc42u.dll_operatordelete
add esp, 4
lea ecx, [esp + 0x44]
mov byte [esp + 0x74], 0
call fcn.0040a7f0
lea ecx, [esp + 0x30]
mov dword [esp + 0x74], 0xffffffff
call fcn.0040a7f0
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x94]
mov dword fs:[0], ecx
add esp, 0x78
ret 0x24