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

Disassembly:
push 0xffffffffffffffff
push 0x438838
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
mov cl, byte [esp + 0x78]
push ebx
push ebp
xor ebp, ebp
push esi
push edi
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x28], cl
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x34], ebp
fld qword [esp + 0xa4]
fcomp qword [0x43f2f8]
mov dword [esp + 0x80], ebp
fnstsw ax
test ah, 1
jne 0x42b5a0
fld qword [esp + 0xa4]
fcomp qword [0x43e290]
fnstsw ax
test ah, 0x41
je 0x42b5a0
mov esi, dword [esp + 0x8c]
mov eax, dword [esi + 0x74]
mov edi, dword [esi + eax*4 + 0x78]
cmp edi, ebp
jne 0x42ae13
mov esi, dword [esp + 0x88]
lea edx, [esp + 0x28]
mov byte [esi], cl
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov ecx, dword [0x43f2b8]
push ecx
push ebp
push edx
jmp 0x42b583
fld qword [esp + 0xa4]
fmul qword [0x43f2c8]
call sub.MSVCRT.dll__ftol
fld qword [esp + 0xa4]
fmul qword [0x43f2f0]
sub esp, 8
mov word [edi + 0x3d27462], ax
fstp qword [esp]
call fcn.00426a00
mov edx, dword [esi + 0x74]
mov ecx, 0xb
sub ecx, eax
add esp, 8
mov eax, dword [esi + edx*4 + 0x78]
mov word [eax + 0x3d27464], cx
mov ecx, dword [esi + 0x74]
mov eax, dword [esi + ecx*4 + 0x78]
mov cx, word [eax + 0x3d27464]
cmp cx, bp
ja 0x42ae78
mov word [eax + 0x3d27464], bp
jmp 0x42ae87
cmp cx, 3
jb 0x42ae87
mov word [eax + 0x3d27464], 3
mov ebx, dword [sym.imp.MSVCRT.dll_malloc]
push 0x4e21
call ebx
mov edi, eax
add esp, 4
cmp edi, ebp
mov dword [esp + 0xa4], edi
je 0x42b561
push 0xbb80
mov dword [esp + 0x14], ebp
call ebx
mov ebx, eax
add esp, 4
cmp ebx, ebp
mov dword [esp + 0x14], ebx
jne 0x42aec6
push edi
jmp 0x42b558
mov edi, dword [esp + 0xa4]
mov ecx, 0x1388
xor eax, eax
lea edx, [esp + 0x1c]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x2ee0
xor eax, eax
mov edi, ebx
push edx
mov edx, dword [esp + 0xa4]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0xa4]
push ecx
mov ecx, dword [esp + 0xa4]
push ebx
push edx
mov edx, dword [esp + 0xa8]
push eax
mov eax, dword [esp + 0xa8]
push ecx
push edx
push eax
push esi
call fcn.00426e00
add esp, 0x28
test eax, eax
jne 0x42af42
mov ecx, dword [esp + 0xa4]
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ecx
call esi
push ebx
call esi
add esp, 8
jmp 0x42b561
mov ebx, dword [esi + 0x18]
push ebp
call fcn.0042cc70
add esp, 4
cmp ebx, ebp
mov edi, eax
jne 0x42af68
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call ebx
push 0xa
push edi
mov esi, eax
call ebx
jmp 0x42afc1
lea edx, [esp + 0x38]
push edx
push ebx
call dword [sym.imp.USER32.dll_GetClientRect]
cmp dword [esi + 0x2c], ebp
jne 0x42afb7
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
lea edx, [esp + 0x20]
mov dword [esp + 0x20], eax
push edx
push ebx
mov dword [esp + 0x2c], ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov ebx, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push edi
call ebx
push 0xa
push edi
mov esi, eax
call ebx
mov eax, dword [esp + 0x20]
cmp eax, esi
jge 0x42afc1
cmp eax, ebp
jl 0x42afc1
mov esi, eax
jmp 0x42afc1
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
sub esi, eax
push edi
push ebp
call dword [sym.imp.USER32.dll_ReleaseDC]
cmp dword [esp + 0x98], esi
jle 0x42afd9
mov dword [esp + 0x98], esi
push 0x1772
call dword [sym.imp.MSVCRT.dll_malloc]
push 0x1772
mov ebx, eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 8
mov edx, eax
cmp ebx, ebp
mov dword [esp + 0xa0], edx
je 0x42b553
cmp edx, ebp
je 0x42b550
mov ecx, 0x5dc
xor eax, eax
mov edi, ebx
mov dword [esp + 0x9c], ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x5dc
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
cmp dword [esp + 0x10], ebp
jle 0x42b2b1
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x59]
mov byte [esp + 0x58], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [esp + 0x14]
xor edx, edx
stosb byte es:[edi], al
mov eax, dword [esp + 0x9c]
xor esi, esi
lea eax, [eax + eax*2]
mov dx, word [ecx + eax*8]
lea ebp, [ecx + eax*8]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov si, word [ebp + 2]
add edx, eax
push edx
lea eax, [esp + 0x3c]
push 0x43bf18
push eax
add esi, ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea ecx, [esp + 0x58]
push esi
push 0x43bf18
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [esp + 0xa8]
add esp, 0xc
test eax, eax
jne 0x42b10f
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0xa0]
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 + 0x14]
lea edi, [ecx + 8]
jmp 0x42b26c
mov esi, dword [esp + 0x8c]
xor eax, eax
mov ax, word [ebp - 0x16]
xor ecx, ecx
mov cx, word [ebp - 0x12]
mov edx, dword [esi + 0x64]
add ecx, eax
xor eax, eax
mov ax, word [ebp + 2]
lea edi, [edx + ecx]
cmp eax, edi
jge 0x42b157
mov ecx, dword [esi + 0x70]
xor edx, edx
mov dx, word [ebp - 0x18]
xor eax, eax
mov ax, word [ebp - 0x14]
add edx, eax
add edx, ecx
xor ecx, ecx
mov cx, word [ebp]
cmp ecx, edx
jle 0x42b269
jmp 0x42b192
mov edi, dword [esi + 0x6c]
add edi, edx
add edi, ecx
cmp eax, edi
jg 0x42b192
mov edi, dword [esp + 0x18]
xor eax, eax
mov ax, word [ebp - 0x18]
xor ecx, ecx
mov cx, word [ebp]
xor edx, edx
mov dx, word [ebp - 0x14]
sub ecx, eax
mov eax, dword [esi + 0x70]
sub ecx, edx
mov edx, dword [esp + 0x98]
sub ecx, edi
add ecx, edx
cmp ecx, eax
jle 0x42b269
or ecx, 0xffffffff
mov edi, 0x439c50
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x38]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
or ecx, 0xffffffff
mov edi, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, 0x439c50
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0xa0]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x58]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0xa0]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x43df08
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0xa4]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, dword [esp + 0xa4]
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x9c]
mov ecx, edx
and ecx, 3
inc eax
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x9c], eax
cmp eax, ecx
jl 0x42b038
cmp byte [ebx], 0
je 0x42b4e0
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
mov eax, dword [0x43f2b8]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x42b2dd
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x42b321
mov ecx, dword [esp + 0x30]
push 0
lea ebp, [ecx + esi]
lea ecx, [esp + 0x2c]
push ebp
call fcn.0042d0b0
test al, al
je 0x42b321
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, esi
mov esi, ebx
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], 0
mov edi, 0x43df08
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x43f2b8]
sub ecx, edx
cmp ecx, esi
ja 0x42b348
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x42b38f
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebp, [edx + esi]
push ebp
call fcn.0042d0b0
test al, al
je 0x42b38f
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, esi
mov esi, 0x43df08
lea edi, [edx + eax]
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 + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], 0
mov edi, dword [esp + 0xa0]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [0x43f2b8]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [esp + 0x30]
sub edx, ecx
cmp edx, esi
ja 0x42b3b8
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x42b401
mov eax, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebp, [eax + esi]
push ebp
call fcn.0042d0b0
test al, al
je 0x42b401
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
mov ecx, esi
mov esi, dword [esp + 0xa0]
lea edi, [eax + edx]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [eax + ebp], 0
mov edi, 0x43df08
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov esi, ecx
mov ecx, dword [0x43f2b8]
sub ecx, edx
cmp ecx, esi
ja 0x42b428
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x42b46f
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebp, [edx + esi]
push ebp
call fcn.0042d0b0
test al, al
je 0x42b46f
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, esi
mov esi, 0x43df08
lea edi, [edx + eax]
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 + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], 0
mov edi, dword [esp + 0xa4]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x30]
repne scasb al, byte es:[edi]
mov eax, dword [0x43f2b8]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x42b497
call dword [sym.imp.MSVCP60.dll_void___cdecl_std::_Xlen_void_]
test esi, esi
jbe 0x42b4e0
mov edx, dword [esp + 0x30]
push 0
lea ecx, [esp + 0x2c]
lea ebp, [edx + esi]
push ebp
call fcn.0042d0b0
test al, al
je 0x42b4e0
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x30]
mov ecx, esi
mov esi, dword [esp + 0xa4]
lea edi, [edx + eax]
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 + 0x2c]
mov dword [esp + 0x30], ebp
mov byte [ecx + ebp], 0
mov esi, dword [sym.imp.MSVCRT.dll_free]
push ebx
call esi
mov edx, dword [esp + 0xa4]
push edx
call esi
mov eax, dword [esp + 0xac]
push eax
call esi
mov ecx, dword [esp + 0x20]
push ecx
call esi
mov esi, dword [esp + 0x98]
mov dl, byte [esp + 0x38]
xor edi, edi
add esp, 0x10
mov byte [esi], dl
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov eax, dword [0x43f2b8]
lea ecx, [esp + 0x28]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0042cde0
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0x42b5cb
mov cl, byte [eax - 1]
test cl, cl
je 0x42b54c
dec cl
mov byte [eax - 1], cl
jmp 0x42b5cb
dec eax
push eax
jmp 0x42b5c3
push ebx
jmp 0x42b558
cmp edx, ebp
je 0x42b561
push edx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov esi, dword [esp + 0x88]
mov dl, byte [esp + 0x28]
lea ecx, [esp + 0x28]
mov byte [esi], dl
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov eax, dword [0x43f2b8]
push eax
push ebp
push ecx
mov ecx, esi
call fcn.0042cde0
mov ecx, dword [esp + 0x2c]
cmp ecx, ebp
je 0x42b5cb
mov al, byte [ecx - 1]
test al, al
je 0x42b5c1
dec al
mov byte [ecx - 1], al
jmp 0x42b5cb
mov esi, dword [esp + 0x88]
lea eax, [esp + 0x28]
mov byte [esi], cl
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov edx, dword [0x43f2b8]
push edx
push ebp
push eax
jmp 0x42b583
dec ecx
push ecx
call sub.MFC42u.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x78]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret