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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49827f
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x4be0a0]
xor eax, esp
mov dword [esp + 0x60], eax
push ebx
push esi
push edi
mov eax, dword [0x4be0a0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, 0xf060
mov dword [esp + 0x14], eax
cmp cx, word [ebp + 0xc]
je 0x47a08b
push 2
pop ecx
cmp cx, word [ebp + 0xc]
je 0x47a08b
xor ecx, ecx
inc ecx
cmp cx, word [ebp + 0xc]
jne 0x47a094
push str.A16FDA96_D9B8_4d7d_95B1_D4980F381025
push eax
call dword [sym.imp.USER32.dll_GetPropW]
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x47a094
mov eax, dword [ebx + 0x20]
call fcn.00421460
mov eax, dword [ebx + 0x18]
sub eax, dword [ebx + 0x14]
add ebx, 8
push 0x7c
cdq
pop ecx
idiv ecx
and dword [esp + 0x10], 0
test eax, eax
jle 0x479fcf
mov edi, 0x4c4b78
push 0x2000
push 0
push edi
call fcn.0047f8f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0x1000
push edi
lea eax, [esi + 0x321]
push eax
push dword [esp + 0x20]
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
push esi
mov esi, ebx
call fcn.0047a520
cmp dword [eax + 0x58], 0
je 0x479f0c
push dword [esp + 0x10]
call fcn.0047a520
mov eax, dword [eax + 0x58]
xor ecx, ecx
mov word [eax*2 + 0x4c4b78], cx
push dword [esp + 0x10]
mov esi, ebx
call fcn.0047a520
cmp byte [eax + 0x5c], 0
je 0x479f2b
cmp word [0x4c4b78], 0
je 0x479fda
mov esi, dword [esp + 0x18]
mov eax, dword [esi + 0x24]
test eax, eax
je 0x479f81
push dword [esi + 0x28]
lea ecx, [esp + 0x3c]
push edi
push dword [esp + 0x18]
push ecx
call eax
and dword [esp + 0x80], 0
mov ecx, eax
lea esi, [esp + 0x54]
call fcn.00402770
or dword [esp + 0x80], 0xffffffff
lea esi, [esp + 0x38]
call fcn.00405980
cmp dword [esp + 0x68], 0
jne 0x47a026
lea esi, [esp + 0x54]
call fcn.00405980
mov esi, dword [esp + 0x18]
mov edx, edi
lea eax, [esp + 0x1c]
call fcn.00402730
lea eax, [esp + 0x1c]
mov dword [esp + 0x80], 1
mov ecx, dword [esi + 0x20]
push eax
call fcn.00419bf0
or dword [esp + 0x80], 0xffffffff
lea esi, [esp + 0x1c]
call fcn.00405980
mov eax, dword [ebx + 0x10]
sub eax, dword [ebx + 0xc]
push 0x7c
cdq
pop ecx
idiv ecx
inc dword [esp + 0x10]
cmp dword [esp + 0x10], eax
jl 0x479ebd
push 1
push dword [esp + 0x18]
jmp 0x47a08e
push dword [esp + 0x10]
mov esi, ebx
call fcn.0047a520
cmp dword [eax + 0x18], 8
jb 0x479ff0
mov eax, dword [eax + 4]
jmp 0x479ff3
add eax, 4
mov esi, dword [esp + 0x14]
push eax
push 0x4af51c
push 0x10
mov edi, 0x4a1488
call fcn.0045d104
mov eax, dword [esp + 0x1c]
add esp, 0xc
add eax, 0x321
push eax
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x47a094
cmp dword [esp + 0x6c], 8
mov edi, dword [esp + 0x58]
jae 0x47a035
lea edi, [esp + 0x58]
push dword [esp + 0x10]
mov esi, ebx
call fcn.0047a520
cmp dword [eax + 0x18], 8
jb 0x47a04b
mov eax, dword [eax + 4]
jmp 0x47a04e
add eax, 4
mov esi, dword [esp + 0x14]
push edi
push eax
push 0x4af530
push 0x10
mov edi, 0x4a1488
call fcn.0045d104
mov eax, dword [esp + 0x20]
add esp, 0x10
add eax, 0x321
push eax
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
lea esi, [esp + 0x54]
call fcn.00405980
jmp 0x47a094
push 2
push eax
call dword [sym.imp.USER32.dll_EndDialog]
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x60]
xor ecx, esp
call fcn.0047d444
mov esp, ebp
pop ebp
ret