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

Disassembly:
sub esp, 0x204
mov eax, dword [0x5debe0]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x218]
mov esi, dword [edi + 0xc4]
mov ebx, dword [esi + 4]
xor ebp, ebp
push 0x14
push 0x5dff88
mov dword [esp + 0x18], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x1c], ebp
call dword [eax + 0x4cc]
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0x14]
add esp, 8
cmp eax, ebp
jne 0x4f7da5
push edi
call fcn.004d5ed0
add esp, 4
mov ecx, dword [edi + 0x14]
mov ebp, dword [ecx + 4]
xor eax, eax
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_GetFocus]
test ebx, ebx
mov dword [esp + 0x38], eax
je 0x4f7dd1
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp ebx, eax
je 0x4f7dd9
mov dword [esp + 0x38], 0
mov eax, dword [edi + 0x98]
test ah, 1
je 0x4f7e2a
mov eax, dword [edi + 0xd0]
test eax, eax
mov dword [esi + 4], eax
jne 0x4f7e02
mov edx, dword [0x5debe0]
push str.UpdateWrapper:_Cannot_find_container_window
call dword [edx + 0x10]
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4f818e
mov ecx, dword [0x5debe0]
push str.UpdateWrapper:_Container_was_destroyed
call dword [ecx + 0x10]
add esp, 4
jmp 0x4f818e
mov eax, dword [edi + 0x88]
test eax, eax
je 0x4f7e7c
mov dword [esi + 0xbc], 0x6000008
mov dword [esi + 0xc0], 0x80
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x38]
test eax, eax
mov eax, dword [esi + 0xbc]
je 0x4f7e6f
or eax, 0x40000000
mov dword [esi + 0xbc], eax
jmp 0x4f7ef8
or eax, 0x80000000
mov dword [esi + 0xbc], eax
jmp 0x4f7ef8
mov eax, dword [esi + 0xf8]
test ah, 0x20
je 0x4f7e9d
mov dword [esi + 0xbc], 0x86000008
mov dword [esi + 0xc0], 0x40000
jmp 0x4f7ef8
mov eax, dword [esi + 0x38]
test eax, eax
je 0x4f7ee4
mov dword [esi + 0xbc], 0x84c80008
mov dword [esi + 0xc0], 1
mov edx, dword [eax + 0x14]
push edx
call fcn.00528280
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0xf8]
add esp, 4
test ah, 4
je 0x4f7ed8
test ah, 8
jne 0x4f7ef8
or dword [esi + 0xbc], 0x40000
jmp 0x4f7ef8
mov dword [esi + 0xbc], 0x2cf0008
mov dword [esi + 0xc0], 0
mov eax, dword [esi + 0xc4]
mov ebp, dword [esi + 0xbc]
mov ebx, dword [esi + 0xc0]
mov edx, dword [esi + 0xc8]
or ebp, eax
mov eax, dword [esi + 0xf8]
or ebx, edx
test ah, 4
mov dword [esi + 0xbc], ebp
mov ecx, ebp
mov dword [esi + 0xc0], ebx
je 0x4f7f3e
test ah, 8
je 0x4f7f3e
and ecx, 0xfffaffff
mov dword [esi + 0xbc], ecx
or eax, 0xc0
push edi
mov dword [esi + 0xf8], eax
call fcn.004fd690
mov ebp, dword [esi + 0xf8]
and ebp, 0xffffff3f
mov dword [esi + 0xf8], ebp
mov ebx, dword [edi + 0x40]
mov edx, dword [edi + 0x44]
mov eax, ebp
mov ebp, dword [esi + 0xa0]
add ebp, ebx
mov ebx, dword [esi + 0xa4]
add esp, 4
add ebx, edx
test ah, 0x20
je 0x4f7fa8
mov ecx, dword [edi]
mov edx, dword [ecx + 0x88]
xor eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
mov eax, dword [edi + 8]
lea eax, [eax + eax*4]
shl eax, 4
mov ebp, dword [eax + edx + 0xc]
mov ebx, dword [eax + edx + 0x10]
add eax, edx
jmp 0x4f7fcf
test byte [esi + 0x54], 5
jne 0x4f7fc1
test al, 1
je 0x4f7fc1
mov eax, closesocket
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], eax
jmp 0x4f7fcf
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x3c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x24]
mov dword [edx + 4], edi
mov eax, dword [esi + 8]
test eax, eax
jne 0x4f7fe0
mov eax, dword [edi + 0x30]
mov edx, dword [0x5debe4]
lea ecx, [esp + 0x140]
push ecx
push 0xffffffffffffffff
push eax
call dword [edx + 8]
mov ecx, dword [0x5debe4]
lea eax, [esp + 0x78]
push eax
push 0xffffffffffffffff
push str.TkTopLevel
call dword [ecx + 8]
mov edx, dword [0x5e092c]
add esp, 0x18
add edx, 0x14
push 0
mov dword [esp + 0x24], edx
call fcn.005266d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push 0
push eax
mov eax, dword [esi + 0xbc]
push ebx
push ebp
push ecx
mov ecx, dword [esp + 0x15c]
push edx
mov edx, dword [esp + 0x8c]
push eax
mov eax, dword [esi + 0xc0]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
call dword [ecx]
lea edx, [esp + 0x6c]
mov dword [esi + 4], eax
mov eax, dword [0x5debe0]
push edx
call dword [eax + 0x1e8]
mov edx, dword [0x5debe0]
lea ecx, [esp + 0x144]
push ecx
call dword [edx + 0x1e8]
mov eax, dword [esi + 4]
add esp, 8
push edi
push 0xffffffffffffffeb
push eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov ecx, dword [esp + 0x24]
xor ebp, ebp
mov dword [ecx + 4], ebp
test dword [esi + 0xc8], 0x80000
je 0x4f80e6
mov ebx, dword [0x5dff94]
cmp ebx, ebp
je 0x4f80e6
mov eax, dword [esi + 0xcc]
fld qword [esi + 0xd8]
fmul qword [0x5a2208]
xor edx, edx
cmp eax, ebp
setne dl
fadd qword [0x594108]
or edx, 2
push edx
call fcn.00582b68
mov ecx, dword [esi + 4]
push eax
mov eax, dword [esi + 0xd0]
push eax
push ecx
call ebx
jmp 0x4f8122
mov eax, dword [esi + 0xcc]
cmp eax, ebp
mov dword [esi + 0xd8], ebp
mov dword [esi + 0xdc], 0x3ff00000
je 0x4f8122
dec dword [eax]
mov eax, dword [esi + 0xcc]
cmp dword [eax], ebp
jg 0x4f811c
mov edx, dword [0x5debe0]
push eax
call dword [edx + 0x80]
add esp, 4
mov dword [esi + 0xcc], ebp
lea eax, [esp + 0x40]
mov dword [esp + 0x40], 0x2c
mov ecx, dword [esi + 4]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowPlacement]
mov edx, dword [esp + 0x5c]
mov dword [esi + 0x98], edx
mov eax, dword [esp + 0x60]
mov dword [esi + 0x9c], eax
test byte [edi + 0x98], 4
jne 0x4f815f
push edi
call fcn.004dc470
add esp, 4
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4f8186
mov ecx, eax
cmp ecx, dword [esi + 4]
je 0x4f8186
test byte [esi + 0xc0], 8
jne 0x4f8186
push 3
mov edx, ecx
push edx
call dword [sym.imp.USER32.dll_GetWindow]
mov dword [esp + 0x30], eax
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x1c]
push 0x46000000
push 0xfffffffffffffff0
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [edi + 0x98]
test ah, 1
je 0x4f81b5
push 0x4fe880
push 0xfffffffffffffffc
push ebp
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 4]
push eax
push ebp
call dword [sym.imp.USER32.dll_SetParent]
test ebx, ebx
je 0x4f828f
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0
push 0x7f
push ebx
call ebp
push 0
push 1
push 0x7f
push ebx
mov dword [esp + 0x44], eax
call ebp
mov dword [esp + 0x3c], eax
cmp ebx, dword [esi + 4]
je 0x4f8295
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp ebx, eax
je 0x4f8295
push 0
push 0xffffffffffffffeb
push ebx
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov eax, dword [esi + 0xfc]
test eax, eax
jle 0x4f827d
mov edx, dword [0x5debe0]
lea ecx, [eax*4]
push ecx
call dword [edx + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
mov ebp, dword [eax + 0x540]
add esp, 4
test ebp, ebp
je 0x4f8277
mov eax, dword [esp + 0x14]
cmp dword [ebp + 0x38], edi
jne 0x4f826d
test byte [ebp + 0xf8], 1
jne 0x4f826d
mov ecx, dword [ebp + 0x18]
mov dword [eax], ecx
mov edx, dword [ebp]
add eax, 4
mov dword [esp + 0x20], eax
mov eax, dword [edx + 0x14]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_SetParent]
mov eax, dword [esp + 0x20]
mov ebp, dword [ebp + 0x104]
test ebp, ebp
jne 0x4f823d
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
call dword [sym.imp.USER32.dll_SetMenu]
push ebx
call dword [sym.imp.USER32.dll_DestroyWindow]
jmp 0x4f8295
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
and dword [esi + 0xf8], 0xfffffffe
mov eax, dword [edi + 0x98]
test ah, 1
je 0x4f82f2
mov edx, dword [esp + 0x1c]
mov eax, dword [esi + 4]
push 0
push edx
push 0x402
push eax
call ebp
test eax, eax
je 0x4f82f2
mov ecx, dword [edi + 0xbc]
mov edx, dword [edi + 0xb8]
mov eax, dword [esi + 4]
push ecx
push edx
push 0x401
push eax
call ebp
push edi
call fcn.00536740
mov ecx, dword [esi + 0xb8]
mov edx, dword [esi + 4]
add esp, 4
push eax
push ecx
push 0x40b
push edx
call ebp
mov eax, dword [esp + 0x30]
test eax, eax
mov ebx, dword [esi + 0x18]
mov dword [esi + 0x18], 0
je 0x4f831c
push 0x613
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetWindowPos]
push ebx
push edi
call fcn.004f8480
mov eax, dword [esp + 0x3c]
add esp, 8
test eax, eax
mov dword [esi + 0x18], ebx
je 0x4f833f
mov ecx, dword [esi + 4]
push eax
push 0
push 0x80
push ecx
call ebp
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4f8355
mov edx, dword [esi + 4]
push eax
push 1
push 0x80
push edx
call ebp
mov eax, dword [edi + 0x98]
test ah, 1
je 0x4f8394
mov eax, dword [esi + 4]
push 0
push ebx
push 0x40c
push eax
call ebp
inc ebx
cmp ebx, eax
je 0x4f8385
push 1
push edi
call fcn.004f8480
add esp, 8
mov dword [esi + 0x18], 1
mov ecx, dword [edi + 0x14]
mov edx, dword [edi]
push ecx
push edx
call fcn.00528440
add esp, 8
mov eax, dword [esi + 0xb8]
test eax, eax
je 0x4f83bf
mov ebx, dword [esi + 0xf8]
push eax
mov eax, dword [esi + 4]
or ebx, 0x20
push eax
mov dword [esi + 0xf8], ebx
call dword [sym.imp.USER32.dll_SetMenu]
and dword [esi + 0xf8], 0xffffffdf
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4f8426
mov eax, dword [esi + 0xfc]
test eax, eax
jle 0x4f8415
mov ecx, dword [edi + 4]
mov ebp, dword [ecx + 0x540]
test ebp, ebp
je 0x4f8415
mov ebx, dword [esp + 0x14]
cmp dword [ebp + 0x38], edi
jne 0x4f840b
test byte [ebp + 0xf8], 1
jne 0x4f840b
mov edx, dword [ebp]
push edx
call fcn.004f7d50
mov eax, dword [ebx]
push eax
mov eax, dword [ebp]
push eax
add ebx, 4
call fcn.004f8480
add esp, 0xc
mov ebp, dword [ebp + 0x104]
test ebp, ebp
jne 0x4f83e2
mov ecx, dword [esp + 0x14]
mov edx, dword [0x5debe0]
push ecx
call dword [edx + 0x18]
add esp, 4
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x4f844d
mov dword [eax + 0xc], 0
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.USER32.dll_SetActiveWindow]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4f845c
push eax
call dword [sym.imp.USER32.dll_SetFocus]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x204
ret