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

Disassembly:
push 0xffffffffffffffff
push 0x4be3f5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push esi
mov esi, ecx
mov ecx, dword [esp + 0x9c]
push edi
mov dword [esp + 0x30], 0
call fcn.0048bc30
mov ecx, dword [esp + 0x98]
mov edi, eax
mov dword [esp + 0x24], edi
call fcn.0048bc30
mov dword [esp + 0x20], eax
cmp eax, edi
lea eax, [esp + 0x24]
jb 0x4962b2
lea eax, [esp + 0x20]
mov eax, dword [eax]
test eax, eax
mov dword [esp + 0x2c], eax
jne 0x4962fa
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov edi, dword [esp + 0x90]
mov esi, eax
mov cl, byte [esi]
lea edx, [esi + 4]
mov byte [edi], cl
push edx
lea ecx, [edi + 4]
call fcn.004829d0
add esi, 0x10
lea ecx, [edi + 0x10]
push esi
mov dword [esp + 0x8c], 1
call fcn.004829d0
mov eax, edi
jmp 0x4969f8
cmp eax, 0x2e
ja 0x49630a
mov edi, 1
mov dword [esp + 0x14], edi
jmp 0x49631e
mov ecx, 0x104
cmp ecx, eax
sbb eax, eax
neg eax
add eax, 2
mov dword [esp + 0x14], eax
mov edi, eax
push ebx
mov ebx, 1
mov ecx, edi
push ebp
shl ebx, cl
lea ecx, [esp + 0x6c]
mov byte [esp + 0x68], 1
mov dword [esp + 0x14], ebx
call fcn.00482960
lea ecx, [esp + 0x78]
mov dword [esp + 0x90], 2
call fcn.00482960
mov dl, byte [esp + 0x13]
mov ebp, ebx
mov ecx, edi
mov dword [esp + 0x90], 3
shl ebp, cl
mov byte [esp + 0x3c], dl
test ebp, ebp
mov dword [esp + 0x24], ebp
mov eax, ebp
jge 0x496374
xor eax, eax
lea ecx, [eax*8]
sub ecx, eax
shl ecx, 2
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
lea edx, [esp + 0x68]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x40], eax
push edx
push ebp
push eax
call fcn.00498c20
mov ecx, dword [esp + 0x40]
lea eax, [ebp*8]
sub eax, ebp
lea eax, [ecx + eax*4]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x80]
push edx
push eax
lea ecx, [esp + 0x80]
mov byte [esp + 0x98], 5
call fcn.0046fe60
mov edi, dword [esp + 0x74]
mov ecx, dword [esp + 0x70]
mov edx, edi
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0xa0]
add esp, 4
mov dl, byte [eax]
lea edi, [ecx + 0x1c]
add eax, 4
push eax
lea ecx, [edi + 4]
mov byte [edi], dl
call fcn.00483310
mov eax, dword [esp + 0x9c]
lea ecx, [edi + 0x10]
add eax, 0x10
push eax
call fcn.00483310
mov ecx, dword [esp + 0x40]
lea eax, [ebx*8]
sub eax, ebx
shl eax, 2
mov dword [esp + 0x28], eax
lea edi, [eax + ecx]
mov eax, dword [esp + 0xa4]
mov dl, byte [eax]
add eax, 4
push eax
lea ecx, [edi + 4]
mov byte [edi], dl
call fcn.00483310
mov eax, dword [esp + 0xa4]
lea ecx, [edi + 0x10]
add eax, 0x10
push eax
call fcn.00483310
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x40]
mov edx, dword [esi]
cmp eax, 1
jne 0x4964a7
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0x9c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
mov ebx, eax
lea ecx, [edi + 0x58]
mov dl, byte [ebx]
lea eax, [ebx + 4]
push eax
mov byte [edi + 0x54], dl
call fcn.00483310
add ebx, 0x10
lea ecx, [edi + 0x64]
push ebx
call fcn.00483310
jmp 0x496768
mov eax, dword [esp + 0x9c]
mov ecx, esi
push eax
call dword [edx + 0x18]
mov cl, byte [eax]
mov dword [esp + 0x2c], eax
add eax, 4
mov byte [edi + 0x38], cl
push eax
lea ecx, [edi + 0x3c]
call fcn.00483310
mov edx, dword [esp + 0x2c]
lea ecx, [edi + 0x48]
add edx, 0x10
push edx
call fcn.00483310
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0xa4]
push eax
mov ecx, esi
call dword [edx + 0x18]
mov edi, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax]
mov dword [esp + 0x2c], eax
shl ebx, 3
sub ebx, edi
add eax, 4
shl ebx, 3
push eax
mov dword [esp + 0x34], ebx
mov byte [ebx + ecx], dl
lea ecx, [ebx + ecx + 4]
call fcn.00483310
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 0x10
push eax
lea ecx, [ebx + ecx + 0x10]
call fcn.00483310
cmp edi, 3
jbe 0x49659f
mov edx, dword [esp + 0x14]
mov edi, 0x54
lea eax, [edx - 2]
shr eax, 1
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x40]
mov edx, dword [esi]
mov dword [esp + 0x20], eax
lea ecx, [eax + 0x38]
lea eax, [eax + edi - 0x38]
push ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x20]
mov dl, byte [eax]
mov dword [esp + 0x2c], eax
add eax, 4
mov byte [edi + ecx], dl
push eax
lea ecx, [edi + ecx + 4]
call fcn.00483310
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x20]
add eax, 0x10
push eax
lea ecx, [edi + ecx + 0x10]
call fcn.00483310
mov eax, dword [esp + 0x18]
add edi, 0x38
dec eax
mov dword [esp + 0x18], eax
jne 0x496546
mov edi, dword [esp + 0x14]
mov eax, 1
cmp edi, eax
mov dword [esp + 0x18], eax
jbe 0x496655
lea edx, [edi + 1]
lea ecx, [edx*8]
sub ecx, edx
shl ecx, 2
mov dword [esp + 0x2c], ecx
lea edx, [eax + edi]
cmp edx, ebp
mov dword [esp + 0x20], edx
jae 0x49663f
mov edi, ecx
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x40]
mov edx, dword [esi]
mov eax, edi
sub eax, ecx
mov ecx, dword [esp + 0xa4]
add eax, ebp
push ecx
push eax
mov ecx, esi
call dword [edx + 0xc]
mov ebx, eax
mov cl, byte [ebx]
lea edx, [ebx + 4]
mov byte [edi + ebp], cl
push edx
lea ecx, [edi + ebp + 4]
call fcn.00483310
add ebx, 0x10
lea ecx, [edi + ebp + 0x10]
push ebx
call fcn.00483310
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x24]
add eax, ebx
add edi, edx
cmp eax, ecx
mov dword [esp + 0x20], eax
jb 0x4965d0
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov edi, dword [esp + 0x14]
add eax, 2
add ecx, 0x38
cmp eax, edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ecx
jb 0x4965c3
lea eax, [edi + edi*2]
cmp eax, ebp
mov dword [esp + 0x18], eax
jae 0x4966d1
lea edi, [eax*8]
sub edi, eax
shl edi, 2
mov ecx, dword [esp + 0x40]
mov edx, dword [esi]
mov dword [esp + 0x2c], ecx
add ecx, ebx
mov eax, edi
push ecx
mov ecx, dword [esp + 0x44]
sub eax, ebx
add ecx, eax
push ecx
mov ecx, esi
call dword [edx + 0xc]
mov ecx, dword [esp + 0x2c]
mov dl, byte [eax]
mov dword [esp + 0x30], eax
add eax, 4
mov byte [edi + ecx], dl
push eax
lea ecx, [edi + ecx + 4]
call fcn.00483310
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x2c]
add eax, 0x10
push eax
lea ecx, [edi + ecx + 0x10]
call fcn.00483310
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edi, ebx
lea ecx, [edx + edx]
add eax, ecx
cmp eax, ebp
mov dword [esp + 0x18], eax
jb 0x49666c
mov edi, edx
mov edx, edi
cmp edi, ebp
mov dword [esp + 0x18], edx
jae 0x496768
jmp 0x4966e5
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
lea ecx, [edx + 2]
add eax, edx
cmp ecx, eax
jae 0x496755
lea ebp, [ecx*8]
sub eax, ecx
sub ebp, ecx
shl ebp, 2
inc eax
shr eax, 1
mov dword [esp + 0x2c], eax
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x9c]
mov edx, dword [esi]
push eax
lea edi, [ecx + ebp]
lea ecx, [edi - 0x1c]
push ecx
mov ecx, esi
call dword [edx + 0xc]
mov ebx, eax
lea ecx, [edi + 4]
mov dl, byte [ebx]
lea eax, [ebx + 4]
push eax
mov byte [edi], dl
call fcn.00483310
add ebx, 0x10
lea ecx, [edi + 0x10]
push ebx
call fcn.00483310
mov eax, dword [esp + 0x2c]
add ebp, 0x38
dec eax
mov dword [esp + 0x2c], eax
jne 0x496707
mov ebp, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea eax, [edx + ecx*2]
cmp eax, ebp
mov dword [esp + 0x18], eax
jb 0x4966e1
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c], 1
call fcn.00482960
lea ecx, [esp + 0x5c]
mov byte [esp + 0x90], 6
call fcn.00482960
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov byte [esp + 0x90], 7
mov dword [esp + 0x18], ebx
lea edi, [eax - 1]
lea ebp, [eax - 1]
test edi, edi
mov byte [esp + 0x13], 1
mov dword [esp + 0x24], edi
jl 0x496943
mov ecx, dword [esp + 0xa0]
push edi
call fcn.0048b770
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xa8]
and eax, 0xff
push edi
lea eax, [eax + edx*2]
mov dword [esp + 0x1c], eax
call fcn.0048b770
and eax, 0xff
test edi, edi
lea ebx, [eax + ebx*2]
mov eax, dword [esp + 0x18]
je 0x496800
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax]
cmp edx, ecx
jae 0x496800
lea edx, [ebx + ebx]
cmp edx, ecx
jb 0x496938
mov ecx, ebp
mov dword [esp + 0x34], edi
sub ecx, edi
xor ebp, ebp
mov dword [esp + 0x20], ebp
test eax, eax
jne 0x496816
test ebx, ebx
je 0x496827
test al, 1
jne 0x496827
test bl, 1
jne 0x496827
shr eax, 1
shr ebx, 1
dec ecx
inc ebp
jmp 0x49680e
mov dl, byte [esp + 0x13]
mov dword [esp + 0x20], ebp
test dl, dl
mov dword [esp + 0x18], eax
je 0x49687b
mov ecx, dword [esp + 0x1c]
shl ebx, cl
mov ecx, dword [esp + 0x40]
add ebx, eax
lea eax, [ebx*8]
sub eax, ebx
mov dl, byte [ecx + eax*4]
lea edi, [ecx + eax*4]
lea ecx, [esp + 0x50]
mov byte [esp + 0x4c], dl
lea eax, [edi + 4]
push eax
call fcn.00483310
add edi, 0x10
lea ecx, [esp + 0x5c]
push edi
call fcn.00483310
mov edi, dword [esp + 0x24]
mov byte [esp + 0x13], 0
jmp 0x4968ef
mov edx, ecx
dec ecx
test edx, edx
je 0x4968c2
lea ebp, [ecx + 1]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov edi, eax
lea ecx, [esp + 0x50]
mov dl, byte [edi]
lea eax, [edi + 4]
push eax
mov byte [esp + 0x50], dl
call fcn.00483310
add edi, 0x10
lea ecx, [esp + 0x5c]
push edi
call fcn.00483310
dec ebp
jne 0x496885
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
test eax, eax
jne 0x4968ca
test ebx, ebx
je 0x4968ef
mov ecx, dword [esp + 0x1c]
mov edx, dword [esi]
shl ebx, cl
mov ecx, dword [esp + 0x40]
add ebx, eax
lea eax, [ebx*8]
sub eax, ebx
lea eax, [ecx + eax*4]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, esi
call dword [edx + 0x20]
mov edx, ebp
dec ebp
test edx, edx
je 0x49692e
lea ebx, [ebp + 1]
mov eax, dword [esi]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, esi
call dword [eax + 0x18]
mov edi, eax
lea ecx, [esp + 0x50]
mov dl, byte [edi]
lea eax, [edi + 4]
push eax
mov byte [esp + 0x50], dl
call fcn.00483310
add edi, 0x10
lea ecx, [esp + 0x5c]
push edi
call fcn.00483310
dec ebx
jne 0x4968f9
mov edi, dword [esp + 0x24]
mov ebp, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x18], ebx
dec edi
mov dword [esp + 0x24], edi
jns 0x4967b0
mov ebx, dword [esp + 0x98]
mov cl, byte [esp + 0x4c]
lea edx, [esp + 0x50]
mov byte [ebx], cl
push edx
lea ecx, [ebx + 4]
call fcn.004829d0
lea eax, [esp + 0x5c]
lea ecx, [ebx + 0x10]
push eax
mov byte [esp + 0x94], 8
call fcn.004829d0
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
mov edx, edi
xor eax, eax
rep stosd dword es:[edi], eax
push edx
mov dword [esp + 0x3c], 1
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x5c]
mov ecx, dword [esp + 0x58]
mov edx, edi
xor eax, eax
rep stosd dword es:[edi], eax
push edx
call sub.MFC42.DLL_operatordelete
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
add esp, 8
cmp ecx, eax
mov byte [esp + 0x90], 0
mov edi, eax
je 0x4969eb
lea esi, [ecx + 0x18]
mov ecx, dword [esi - 4]
mov edx, dword [esi]
push ecx
push edx
lea ecx, [esi - 8]
call fcn.0046fe60
mov eax, dword [esi - 0x10]
mov ecx, dword [esi - 0xc]
push eax
push ecx
lea ecx, [esi - 0x14]
call fcn.0046fe60
add esi, 0x1c
lea edx, [esi - 0x18]
cmp edx, edi
jne 0x4969be
mov ecx, dword [esp + 0x40]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, ebx
pop ebp
pop ebx
mov ecx, dword [esp + 0x80]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x84
ret 0x14