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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x98
push ebx
push ebp
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x28], edi
mov dword [esp + 0x48], esi
je 0x4a6982
mov eax, dword [esi + 0x1c8]
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
mov dword [esi + 0x1cc], eax
mov ecx, dword [esi + 0x1d8]
mov dword [esi + 0x1dc], ecx
mov edx, dword [esi + 0x28]
push 5
push edx
call ebx
cmp eax, edi
je 0x4a63e0
mov ebp, dword [sym.imp.USER32.dll_DestroyWindow]
push eax
call ebp
mov eax, dword [esi + 0x28]
push 5
push eax
call ebx
cmp eax, edi
jne 0x4a63d1
mov edx, dword [esi + 0x28]
lea ecx, [esp + 0x6c]
push ecx
push edx
mov dword [esp + 0x74], edi
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], edi
mov dword [esp + 0x80], edi
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [esi + 0x28]
mov eax, 7
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
push eax
mov dword [esp + 0x5c], edi
mov dword [esp + 0x38], edi
mov edi, dword [sym.imp.USER32.dll_MapDialogRect]
push ecx
mov dword [esp + 0x64], 2
mov dword [esp + 0x40], 5
mov dword [esp + 0x44], 6
mov dword [esp + 0x48], 0xa
call edi
mov eax, dword [esi + 0x28]
lea edx, [esp + 0x34]
push edx
push eax
call edi
mov ebx, dword [esp + 0x60]
mov ecx, dword [esi + 0x28]
mov edi, dword [esp + 0x74]
mov ebp, dword [esp + 0x64]
push 0
push 0
push 0x31
push ecx
mov dword [esp + 0x40], ebx
sub edi, ebx
mov dword [esp + 0x24], ebp
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [esp + 0x24], eax
xor edx, edx
mov eax, edi
sub eax, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 0x2c], eax
jmp 0x4a6498
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
test edx, edx
mov ecx, dword [esi + 0x2a0]
mov edi, dword [esi + 0x2a4]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x4c], edi
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
je 0x4a64d3
mov edi, dword [esp + 0x3c]
add ebp, dword [esp + 0x5c]
add ebx, edi
neg edi
lea eax, [eax + edi*2]
mov dword [esp + 0x14], ebp
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x18], eax
cmp ecx, dword [esp + 0x4c]
mov ebx, ebp
mov byte [esp + 0x13], 0
mov dword [esp + 0x50], ebx
je 0x4a6972
mov edi, dword [ecx]
lea eax, [edi - 7]
cmp eax, 0x10
mov dword [esp + 0x68], edi
ja case.default.0x4a64fd
movzx eax, byte [eax + 0x4a6998]
jmp dword [eax*4 + 0x4a698c]
mov eax, 1
jmp 0x4a651b
mov eax, 2
jmp 0x4a651b
mov eax, 3
jmp 0x4a651b
xor eax, eax
cmp eax, edx
jne 0x4a685e
test edx, edx
je 0x4a653b
cmp byte [esp + 0x13], 0
jne 0x4a653b
add ebp, dword [esp + 0x40]
mov byte [esp + 0x13], 1
mov dword [esp + 0x14], ebp
add edi, 0x64
push edi
push 8
push 0
call fcn.0052afe2
add esp, 0xc
test byte [0x6b2cd4], 1
mov edi, eax
jne 0x4a6571
or dword [0x6b2cd4], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
not al
and al, 1
mov byte [0x6b2cd0], al
jmp 0x4a6576
mov al, byte [0x6b2cd0]
test al, al
je 0x4a65e8
mov ecx, dword [0x6b48a8]
mov edx, dword [esi + 0x28]
mov eax, dword [esp + 0x40]
push 0
push ecx
mov ecx, dword [esp + 0x20]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x2c]
push eax
push ecx
push ebp
push edx
push 0x50000280
push edi
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov ecx, dword [esi + 0x28]
mov edx, dword [esp + 0x40]
push 0
mov ebx, eax
mov eax, dword [0x6b48a8]
push eax
mov eax, dword [esp + 0x20]
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x2c]
push edx
push eax
push ebp
push ecx
push 0x50000282
push 0x62a088
push str.STATIC
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
jmp 0x4a667e
push 0xffffffffffffffff
lea edx, [esp + 0x88]
push edi
push edx
call fcn.0051b523
mov ecx, dword [0x6b48a8]
mov edx, dword [esi + 0x28]
mov eax, dword [eax]
add esp, 0xc
push 0
push ecx
mov ecx, dword [esp + 0x48]
push 0xffffffffffffffff
push edx
mov edx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x30]
push edx
push ebp
push ecx
push 0x50000280
push eax
push 0x63d918
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov ebx, eax
mov eax, dword [esp + 0x84]
cmp eax, 0x6575c8
je 0x4a6648
push eax
call fcn.005f7371
add esp, 4
mov edx, dword [0x6b48a8]
mov eax, dword [esi + 0x28]
mov ecx, dword [esp + 0x40]
push 0
push edx
mov edx, dword [esp + 0x20]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x2c]
push ecx
push edx
push ebp
push eax
push 0x50000282
push 0x62aa66
push 0x63d918
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
test ebx, ebx
mov dword [esp + 0x20], eax
je 0x4a67df
mov ecx, dword [esp + 0x24]
push 1
push ecx
push 0x30
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [esp + 0x20], 0
je 0x4a684a
push ebx
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
test esi, esi
je 0x4a67d7
push esi
call dword [sym.imp.GDI32.dll_SaveDC]
test eax, eax
mov dword [esp + 0x54], eax
je 0x4a678a
mov edx, dword [esp + 0x24]
push edx
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
test byte [0x6b2cd4], 1
jne 0x4a66fb
or dword [0x6b2cd4], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
not al
and al, 1
mov byte [0x6b2cd0], al
jmp 0x4a6700
mov al, byte [0x6b2cd0]
test al, al
mov eax, edi
lea edx, [eax + 2]
je 0x4a6731
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6710
sub eax, edx
lea ecx, [esp + 0x7c]
push ecx
sar eax, 1
push eax
push edi
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
mov ebp, eax
jmp 0x4a677e
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6731
sub eax, edx
push 0xffffffffffffffff
lea edx, [esp + 0xa0]
sar eax, 1
push edi
push edx
mov ebp, eax
call fcn.0051b523
mov eax, dword [eax]
add esp, 0xc
lea ecx, [esp + 0x7c]
push ecx
push ebp
push eax
push esi
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32A]
mov ebp, eax
mov eax, dword [esp + 0x9c]
cmp eax, 0x6575c8
je 0x4a677e
push eax
call fcn.005f7371
add esp, 4
mov edx, dword [esp + 0x54]
push edx
push esi
call dword [sym.imp.GDI32.dll_RestoreDC]
push esi
push ebx
call dword [sym.imp.USER32.dll_ReleaseDC]
test ebp, ebp
je 0x4a67d7
mov esi, dword [esp + 0x7c]
mov eax, dword [esp + 0x40]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x16
push eax
add esi, 2
push esi
push 0
push 0
push 0
push ebx
call edi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
push 0x14
push ecx
mov ecx, dword [esp + 0x24]
sub edx, esi
push edx
mov edx, dword [esp + 0x2c]
push eax
add esi, ecx
push esi
push 0
push edx
call edi
mov esi, dword [esp + 0x48]
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x4a684a
mov ecx, dword [esp + 0x24]
push 1
push ecx
push 0x30
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x1cc]
cmp edx, dword [esi + 0x1d4]
lea edi, [esi + 0x1c8]
jne 0x4a6812
mov ecx, edi
call fcn.004c97e0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x68]
mov dword [eax], ecx
mov ebx, 4
add dword [edi + 4], ebx
mov edx, dword [esi + 0x1dc]
cmp edx, dword [esi + 0x1e4]
lea edi, [esi + 0x1d8]
jne 0x4a683e
mov ecx, edi
call fcn.004c97e0
mov eax, dword [edi + 4]
mov ecx, dword [esp + 0x20]
mov dword [eax], ecx
add dword [edi + 4], ebx
add ebp, dword [esp + 0x40]
mov ebx, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x14], ebp
add ecx, 4
cmp ecx, dword [esp + 0x4c]
mov dword [esp + 0x44], ecx
jne 0x4a64e8
cmp byte [esp + 0x13], 0
je 0x4a6972
add ebp, dword [esp + 0x38]
add edx, 0xc8
push edx
push 8
push 0
mov dword [esp + 0x20], ebp
call fcn.0052afe2
add esp, 0xc
test byte [0x6b2cd4], 1
mov edi, eax
jne 0x4a68bb
or dword [0x6b2cd4], 1
call dword [sym.imp.KERNEL32.dll_GetVersion]
shr eax, 0x1f
not al
and al, 1
mov byte [0x6b2cd0], al
jmp 0x4a68c0
mov al, byte [0x6b2cd0]
test al, al
je 0x4a68fa
mov edx, dword [0x6b48a8]
mov eax, dword [esi + 0x28]
push 0
push edx
mov edx, dword [esp + 0x34]
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x40]
mov ecx, ebp
sub ecx, ebx
push ecx
push edx
push ebx
push eax
push 0x50000007
push edi
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov edi, eax
jmp 0x4a695a
push 0xffffffffffffffff
lea ecx, [esp + 0x94]
push edi
push ecx
call fcn.0051b523
mov edx, dword [0x6b48a8]
mov ecx, dword [esi + 0x28]
mov eax, dword [eax]
add esp, 0xc
push 0
push edx
push 0xffffffffffffffff
push ecx
mov ecx, dword [esp + 0x3c]
mov edx, ebp
sub edx, ebx
push edx
mov edx, dword [esp + 0x44]
push ecx
push ebx
push edx
push 0x50000007
push eax
push 0x63d900
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edi, eax
mov eax, dword [esp + 0x90]
cmp eax, 0x6575c8
je 0x4a695a
push eax
call fcn.005f7371
add esp, 4
test edi, edi
je 0x4a696e
mov eax, dword [esp + 0x24]
push 1
push eax
push 0x30
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esp + 0x28]
add edx, 1
cmp edx, 4
mov dword [esp + 0x28], edx
jl 0x4a6490
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret