Function at 0x487900
Capabilities:
Access peb ldr_data
Get kernel32 base address
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4bb914
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x84
push ebx
push ebp
mov ebp, ecx
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x6c], ebp
mov dword [ebp + 0x90], ebx
call sub.MFC42.DLL_CWnd::GetParentFrame
push eax
push 0x4c3ef0
call sub.MFC42.DLL_AfxDynamicDownCast
add esp, 8
lea ecx, [esp + 0x28]
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ebx
call fcn.00492620
lea eax, [ebp + 0x48]
lea esi, [ebp + 0x58]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 8]
cmp eax, ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x20], edx
je 0x4879e4
cmp dword [eax + 0x70], ebx
je 0x4879e4
mov ecx, dword [eax + 0x88]
cmp ecx, ebx
jne 0x4879aa
mov dword [esp + 0x40], 1
jmp 0x4879b3
call fcn.0042bee0
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x28]
mov dword [eax + 0x7c], 1
call fcn.00492630
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x487991
lea eax, [ebp + 0x48]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 8]
cmp eax, ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x20], edx
je 0x487a65
mov ecx, dword [eax + 0x6c]
mov edi, 2
cmp ecx, edi
jne 0x487a39
cmp dword [eax + 0x70], ebx
jne 0x487a39
mov dword [eax + 0x6c], 1
lea ecx, [esp + 0x28]
call fcn.00492630
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x487a21
jmp 0x487a6a
mov edi, 2
cmp dword [ebp + 0x98], ebx
je 0x487b23
cmp dword [ebp + 0x70], ebx
je 0x487b23
lea eax, [ebp + 0x48]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x28], edx
mov edx, esi
mov eax, dword [ecx + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 8]
mov dword [esp + 0x30], eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x34], ecx
mov ecx, dword [edx]
mov dword [esp + 0x14], ecx
mov ecx, dword [edx + 4]
mov dword [esp + 0x18], ecx
mov ecx, dword [edx + 8]
cmp eax, ecx
mov edx, dword [edx + 0xc]
mov dword [esp + 0x20], edx
je 0x487aee
cmp dword [eax + 0x70], ebx
je 0x487aee
lea ecx, [esp + 0x28]
mov dword [eax + 0x6c], edi
call fcn.00492630
mov eax, esi
mov ecx, dword [eax]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x30]
cmp eax, ecx
jne 0x487abc
cmp dword [ebp + 0xac], ebx
jne 0x487b50
mov edi, dword [esp + 0x10]
mov ecx, edi
call fcn.00460b30
mov ecx, eax
call fcn.00494800
mov ecx, eax
call fcn.00445b80
test eax, eax
je 0x487b54
mov ecx, dword [edi + 0x27c]
push ebx
push 9
call fcn.0041e210
jmp 0x487b54
mov ecx, dword [esp + 0x10]
call fcn.00460b30
mov ecx, eax
call fcn.00494800
mov ecx, eax
call fcn.00445b80
test eax, eax
je 0x487b50
mov ecx, dword [esp + 0x10]
push ebx
push 9
mov ecx, dword [ecx + 0x27c]
call fcn.0041e210
mov edi, dword [esp + 0x10]
mov ecx, dword [ebp + 0x70]
mov eax, dword [ebp + 0xac]
mov edx, dword [ebp + 0x20]
add eax, ecx
push eax
push ebx
push 0x1015
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esp + 0x40]
mov dword [ebp + 0x98], ebx
cmp eax, ebx
je 0x487b89
mov ecx, dword [edi + 0x27c]
call fcn.0041f4b0
mov ecx, dword [edi + 0x27c]
call fcn.0042af50
test eax, eax
jne 0x487bad
push 0x55
call fcn.004746a0
add esp, 4
test eax, eax
jne 0x487bad
mov ecx, edi
call fcn.00468490
mov al, byte [esp + 0x27]
push ebx
push ebx
lea ecx, [esp + 0x68]
mov byte [esp + 0x68], al
call fcn.0046f630
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
mov cl, byte [esp + 0x27]
push ebx
mov byte [esp + 0x48], cl
push ebx
lea ecx, [esp + 0x4c]
mov dword [esp + 0xa4], ebx
call fcn.00492c90
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
lea eax, [ebp + 0x48]
mov byte [esp + 0x9c], 1
mov edx, dword [eax]
mov dword [esp + 0x28], edx
mov edx, dword [esi]
mov ecx, dword [eax + 4]
mov dword [esp + 0x50], edx
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
mov edi, dword [eax + 8]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x30], edi
mov eax, dword [eax + 0xc]
cmp edi, ecx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x34], eax
mov dword [esp + 0x5c], edx
je 0x487d57
jmp 0x487c35
mov eax, dword [esp + 0x34]
lea ecx, [ebp + 0x48]
mov edx, dword [ebp + 0x48]
mov dword [esp + 0x74], edx
mov esi, dword [ecx + 4]
mov ebx, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
cmp eax, ecx
jne 0x487c67
mov ecx, edi
mov eax, 0x2e8ba2e9
sub ecx, ebx
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
mov dword [esp + 0x10], edx
jmp 0x487cb2
sub eax, ecx
mov ecx, edi
sar eax, 2
sub esi, ebx
lea edx, [eax + eax*2]
shl edx, 3
sub edx, eax
mov eax, dword [esp + 0x28]
sub ecx, eax
mov eax, 0x2e8ba2e9
mov dword [esp + 0x40], edx
imul ecx
mov eax, dword [esp + 0x40]
sar edx, 5
mov ecx, edx
add edx, eax
shr ecx, 0x1f
mov eax, 0x2e8ba2e9
add ecx, edx
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, ecx
lea ecx, [eax + edx - 0x17]
mov dword [esp + 0x10], ecx
mov eax, dword [edi + 0x6c]
test eax, eax
jne 0x487d24
mov eax, dword [edi + 0x98]
test eax, eax
jne 0x487d24
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x64]
mov eax, dword [edx]
lea edx, [esp + 0x74]
push eax
push edx
call fcn.00449d40
lea eax, [ebp + 0x48]
mov ecx, dword [ebp + 0x48]
mov dword [esp + 0x14], ecx
mov edx, dword [eax + 4]
mov dword [esp + 0x18], edx
mov ecx, dword [eax + 8]
mov dword [esp + 0x1c], ecx
lea ecx, [esp + 0x14]
mov edx, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
push eax
mov dword [esp + 0x24], edx
call fcn.004931b0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
push edx
mov eax, dword [ecx]
lea ecx, [esp + 0x48]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00492bd0
lea ecx, [esp + 0x28]
call fcn.00492630
lea eax, [ebp + 0x58]
mov edi, dword [esp + 0x30]
mov ecx, eax
mov edx, dword [ecx]
mov dword [esp + 0x50], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 8]
cmp edi, eax
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x5c], ecx
jne 0x487c31
xor ebx, ebx
mov eax, dword [esp + 0x64]
mov esi, dword [eax]
cmp esi, eax
je 0x487e23
lea ecx, [ebp + 0x48]
mov eax, dword [esi + 8]
push eax
mov edx, dword [ecx]
mov dword [esp + 0x54], edx
mov edx, dword [ecx + 4]
mov dword [esp + 0x58], edx
mov edx, dword [ecx + 8]
mov dword [esp + 0x5c], edx
mov ecx, dword [ecx + 0xc]
mov dword [esp + 0x60], ecx
lea ecx, [esp + 0x54]
call fcn.004931b0
mov edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x54]
mov ebx, dword [esp + 0x5c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x7c], edx
mov dword [esp + 0x1c], edx
mov ebp, ecx
mov dword [esp + 0x18], ecx
mov edx, ebx
push 1
lea ecx, [esp + 0x18]
mov edi, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
call fcn.004931b0
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
sub esp, 0x10
mov eax, esp
sub esp, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x3c]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x40]
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x9c]
mov dword [eax + 0xc], edx
mov eax, esp
lea edx, [esp + 0xa4]
mov dword [eax], edi
push edx
mov dword [eax + 4], ebp
mov ebp, dword [esp + 0x90]
mov dword [eax + 8], ecx
lea ecx, [ebp + 0x44]
mov dword [eax + 0xc], ebx
call fcn.004921f0
mov esi, dword [esi]
mov eax, dword [esp + 0x64]
cmp esi, eax
jne 0x487d65
xor ebx, ebx
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx]
cmp eax, ecx
mov dword [esp + 0x38], eax
je 0x487fcd
mov bl, 6
push 0x4e58d8
lea ecx, [eax + 0xa8]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [ecx + 0x70], eax
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x38]
mov dword [edx + 0x9c], eax
call fcn.00426dc0
sub esp, 0xb0
mov esi, eax
mov edi, esp
mov dword [esp + 0xec], esp
push esi
mov ecx, edi
mov dword [esp + 0xf0], edi
call sub.MFC42.DLL_CString::CString_1
lea eax, [esi + 4]
lea ecx, [edi + 4]
push eax
mov byte [esp + 0x150], 2
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esi + 8]
mov byte [esp + 0x14c], 3
push ecx
lea ecx, [edi + 8]
call fcn.004961f0
mov edx, dword [esi + 0x24]
mov byte [esp + 0x14c], 4
mov dword [edi + 0x24], edx
mov eax, dword [esi + 0x28]
mov dword [edi + 0x28], eax
mov ecx, dword [esi + 0x2c]
lea edx, [esi + 0x30]
mov dword [edi + 0x2c], ecx
push edx
lea ecx, [edi + 0x30]
call fcn.0041e160
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x5c], eax
mov ecx, dword [esi + 0x60]
mov dword [edi + 0x60], ecx
mov edx, dword [esi + 0x64]
mov dword [edi + 0x64], edx
mov eax, dword [esi + 0x68]
mov byte [esp + 0x14c], 5
mov dword [edi + 0x68], eax
mov ecx, dword [esi + 0x6c]
mov dword [edi + 0x6c], ecx
mov edx, dword [esi + 0x70]
mov dword [edi + 0x70], edx
mov eax, dword [esi + 0x74]
mov dword [edi + 0x74], eax
mov ecx, dword [esi + 0x78]
mov dword [edi + 0x78], ecx
mov edx, dword [esi + 0x7c]
mov dword [edi + 0x7c], edx
mov eax, dword [esi + 0x80]
mov dword [edi + 0x80], eax
mov ecx, dword [esi + 0x84]
mov dword [edi + 0x84], ecx
mov edx, dword [esi + 0x88]
mov dword [edi + 0x88], edx
mov eax, dword [esi + 0x8c]
mov dword [edi + 0x8c], eax
mov ecx, dword [esi + 0x90]
mov dword [edi + 0x90], ecx
mov edx, dword [esi + 0x94]
mov dword [edi + 0x94], edx
mov eax, dword [esi + 0x98]
mov dword [edi + 0x98], eax
mov ecx, dword [esi + 0x9c]
lea edx, [esi + 0xa0]
mov dword [edi + 0x9c], ecx
push edx
lea ecx, [edi + 0xa0]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esi + 0xa4]
lea ecx, [edi + 0xa4]
push eax
mov byte [esp + 0x150], bl
call sub.MFC42.DLL_CString::CString_1
mov ecx, dword [esi + 0xa8]
mov byte [esp + 0x14c], 1
mov dword [edi + 0xa8], ecx
mov ecx, ebp
call fcn.0047eef0
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x48]
mov eax, dword [edx]
cmp eax, ecx
mov dword [esp + 0x38], eax
jne 0x487e37
xor ebx, ebx
mov ecx, ebp
call fcn.004874d0
mov eax, dword [esp + 0x48]
mov byte [esp + 0x9c], 0
mov edi, eax
mov esi, dword [eax]
cmp esi, eax
je 0x488003
mov eax, esi
mov esi, dword [esi]
push eax
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x4c]
call fcn.00493940
cmp esi, edi
jne 0x487fe8
mov eax, dword [esp + 0x48]
push eax
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x68]
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
add esp, 4
mov esi, dword [edi]
mov dword [esp + 0x9c], 0xffffffff
cmp esi, edi
je 0x488040
mov eax, esi
mov esi, dword [esi]
lea ecx, [esp + 0x3c]
push eax
push ecx
lea ecx, [esp + 0x68]
call fcn.00426e20
cmp esi, edi
jne 0x488029
mov edx, dword [esp + 0x64]
push edx
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x98]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x90
ret