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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x455231
mov eax, dword fs:[0]
push eax
sub esp, 0x3b0
mov eax, dword [0x46a630]
xor eax, esp
mov dword [esp + 0x3a8], eax
push ebx
push esi
push edi
mov eax, dword [0x46a630]
xor eax, esp
push eax
lea eax, [esp + 0x3c0]
mov dword fs:[0], eax
mov edi, ecx
push 0x448
mov dword [esp + 0x18], edi
call fcn.0041ed3e
mov esi, eax
push 0x3ed
mov ecx, edi
mov dword [esp + 0x20], esi
call fcn.0041ed3e
mov ecx, dword [0x46ff8c]
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [edi + 0x148], eax
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], 0
call eax
mov ecx, dword [ebx + 0x20]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 0x14b
push ecx
call ebx
mov edx, dword [esi + 0x20]
push 0
push 0
push 0x14b
push edx
call ebx
mov eax, dword [edi + 0x148]
call fcn.004184b0
mov edx, dword [eax]
mov dword [edi + 0x14c], edx
mov edx, dword [eax + 4]
lea ecx, [edi + 0x14c]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
lea ebx, [edi + 0x15c]
mov dword [ecx + 0xc], eax
mov esi, dword [ebx + 8]
cmp dword [ebx + 4], esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], ebx
jbe 0x4047f0
call fcn.004366d8
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
mov dword [esp + 0x10], eax
jbe 0x404805
call fcn.004366d8
mov eax, dword [esp + 0x10]
push esi
push ebx
push eax
push ebx
lea ecx, [esp + 0x40]
push ecx
call fcn.00406d30
xor ebx, ebx
cmp dword [edi + 0x148], ebx
je 0x404df3
mov dword [esp + 0x78], 0x45d740
mov dword [esp + 0x7c], 0x45d748
mov dword [esp + 0x80], 0x45d750
mov dword [esp + 0x84], 0x45d758
mov dword [esp + 0x10], ebx
jmp 0x404850
mov edx, dword [0x4708a0]
mov eax, dword [0x47089c]
push ebx
push edx
push eax
push 0x398
call fcn.004023e0
mov esi, eax
cmp esi, ebx
je 0x4048ce
lea ebx, [esp + 0x20]
lea eax, [esp + 0x54]
mov dword [esp + 0x20], 0x4e
call fcn.004065e0
mov ebx, dword [eax]
cmp esi, ebx
mov ecx, dword [eax + 4]
mov edx, dword [esi + 4]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x34], edx
je 0x40489c
call fcn.004366d8
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x34], eax
je 0x4048c8
test ebx, ebx
jne 0x4048af
call fcn.004366d8
mov ecx, dword [esp + 0x50]
cmp ecx, dword [ebx + 4]
jne 0x4048bd
call fcn.004366d8
mov edx, dword [esp + 0x50]
mov ecx, dword [edx + 0x10]
xor ebx, ebx
jmp 0x4048d0
xor ecx, ecx
xor ebx, ebx
jmp 0x4048d0
xor ecx, ecx
lea eax, [esp + 0x5c]
push eax
call fcn.004027b0
mov dword [esp + 0x3c8], ebx
cmp dword [eax + 0x18], 8
jb 0x4048ec
mov edx, dword [eax + 4]
jmp 0x4048ef
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
lea esi, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404910
sub eax, esi
sar eax, 1
push eax
push edx
lea esi, [esp + 0x90]
call fcn.00407450
mov byte [esp + 0x3c8], 2
cmp dword [esp + 0x74], 8
jb 0x404949
mov ecx, dword [esp + 0x60]
push ecx
call fcn.0041902a
add esp, 4
mov edx, dword [esp + 0x10]
mov edx, dword [esp + edx*4 + 0x78]
mov eax, edx
mov dword [esp + 0x74], 7
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404967
sub eax, esi
sar eax, 1
push eax
push edx
lea ecx, [esp + 0x90]
call fcn.00407380
mov eax, dword [esp + 0x8c]
mov esi, 8
cmp dword [esp + 0xa0], esi
jae 0x4049a0
lea eax, [esp + 0x8c]
push eax
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x20]
push ebx
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [esp + 0x3c8], 0xffffffff
cmp dword [esp + 0xa0], esi
jb 0x4049d9
mov edx, dword [esp + 0x8c]
push edx
call fcn.0041902a
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 1
cmp eax, 4
mov dword [esp + 0x10], eax
jl 0x404850
mov eax, dword [edi + 0x148]
push ebx
sub eax, 1
push eax
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x20]
push 0x14e
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, dword [esp + 0x28]
xor eax, eax
lea ebx, [esp + 0x78]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
call fcn.00406680
mov ebx, dword [esp + 0x18]
mov edx, dword [ebx + 0x20]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
push 0x45d760
push 0
push 0x143
push edx
call esi
push 1
mov ecx, ebx
call fcn.0041ef1b
push 1
push 0x447
mov ecx, edi
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 1
push 0x448
mov ecx, edi
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 1
push 0x438
mov ecx, edi
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 1
push 0x44d
mov ecx, edi
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 1
push 0x44c
mov ecx, edi
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
call fcn.00418590
test al, al
mov ecx, edi
je 0x404ae6
push 0x44c
call fcn.0041ed3e
mov eax, dword [eax + 0x20]
push 0
push 1
push 0xf1
push eax
call esi
xor edi, edi
jmp 0x404b04
push 0x44d
call fcn.0041ed3e
mov ecx, dword [eax + 0x20]
push 0
push 1
push 0xf1
push ecx
call esi
mov edi, 1
mov ebx, dword [esp + 0x14]
call fcn.00405be0
mov ecx, dword [0x46ff8c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
xor esi, esi
push 2
mov dword [esp + 0x20], esi
call eax
test eax, eax
jle 0x404dbc
mov ecx, dword [0x46ff8c]
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
push esi
push 2
call eax
mov edi, eax
xor ebx, ebx
cmp edi, ebx
je 0x404d93
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], ebx
mov word [esp + 0x8c], bx
mov dword [esp + 0x3c8], 3
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
lea eax, [esp + 0x88]
push eax
mov ecx, edi
call edx
mov eax, dword [esp + 0x8c]
mov esi, 8
cmp dword [esp + 0xa0], esi
jae 0x404b98
lea eax, [esp + 0x8c]
push ebx
push ebx
push 0x100
lea ecx, [esp + 0x2c0]
push ecx
push 0xffffffffffffffff
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp dword [esp + 0xa0], esi
mov eax, dword [esp + 0x8c]
jae 0x404bc9
lea eax, [esp + 0x8c]
push eax
lea edx, [esp + 0xa8]
push 0x45d768
push edx
mov edx, 0x210
call fcn.00401540
add esp, 0xc
lea eax, [esp + 0xa4]
push eax
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x20]
push 0x14c
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
je 0x404c59
mov esi, 2
lea ebx, [ebx]
push esi
lea eax, [esp + 0x8c]
call fcn.00406770
push eax
lea edx, [esp + 0xac]
push str._s____d
push edx
mov edx, 0x210
call fcn.00401540
mov ecx, dword [ebx + 0x20]
add esp, 0x10
lea eax, [esp + 0xa4]
push eax
push 0
push 0x14c
push ecx
add esi, 1
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x404c10
mov eax, dword [ebx + 0x20]
lea edx, [esp + 0xa4]
push edx
push 0
push 0x143
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [edi + 8]
mov esi, dword [esp + 0x28]
mov edx, dword [edi + 0xc]
mov dword [esp + 0x10], eax
mov eax, dword [edi + 0x10]
mov dword [esp + 0x38], eax
mov eax, dword [esi + 4]
test eax, eax
mov dword [esp + 0x30], ecx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
jne 0x404ca1
xor edx, edx
jmp 0x404ca9
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 4
test eax, eax
je 0x404ce6
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 4
cmp edx, ecx
jae 0x404ce6
mov ebx, dword [esi + 8]
mov byte [esp + 0x20], 0
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x20]
push edx
push eax
lea edx, [esp + 0x38]
mov ecx, 1
mov eax, ebx
call fcn.004080b0
add esp, 8
add ebx, 0x10
mov dword [esi + 8], ebx
jmp 0x404d05
mov ebx, dword [esi + 8]
cmp eax, ebx
jbe 0x404cf2
call fcn.004366d8
push ebx
push esi
lea ecx, [esp + 0x38]
push ecx
lea edx, [esp + 0x60]
push edx
mov eax, esi
call fcn.00406ca0
mov ecx, dword [edi + 0xc]
mov edx, dword [edi + 0x10]
mov eax, dword [edi + 8]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x80], edx
mov dword [esp + 0x78], eax
mov eax, dword [edi + 0x14]
push ecx
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x8c], eax
call fcn.004014a0
add esp, 8
test eax, eax
je 0x404d4e
call fcn.00418590
test al, al
jne 0x404d4e
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c8], 0xffffffff
cmp dword [esp + 0xa0], 8
jb 0x404d73
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0041902a
add esp, 4
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0xa0], 7
mov dword [esp + 0x9c], eax
mov word [esp + 0x8c], ax
mov ecx, dword [0x46ff8c]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
add esi, 1
push 2
mov dword [esp + 0x20], esi
call eax
cmp esi, eax
jl 0x404b2a
cmp dword [esp + 0x24], 0
jne 0x404f01
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x14]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov eax, dword [edx + 0x148]
test eax, eax
jle 0x404f01
push 0x45d390
push ecx
push eax
call fcn.00418720
add esp, 0xc
jmp 0x404f01
mov eax, dword [0x4708a0]
mov ecx, dword [0x47089c]
push ebx
push eax
push ecx
push 0x398
call fcn.004023e0
cmp eax, ebx
je 0x404e18
push 0x32
call fcn.00402380
jmp 0x404e1a
xor eax, eax
lea edx, [esp + 0x30]
push edx
mov ecx, eax
call fcn.004027b0
mov esi, 8
cmp dword [eax + 0x18], esi
jb 0x404e35
mov eax, dword [eax + 4]
jmp 0x404e38
add eax, 4
push eax
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x20]
push ebx
push 0x143
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [esp + 0x48], esi
jb 0x404e60
mov edx, dword [esp + 0x34]
push edx
call fcn.0041902a
add esp, 4
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], bx
mov ebx, dword [esp + 0x14]
mov edi, 1
mov dword [esp + 0x48], 7
call fcn.00405be0
push 0
push 0x447
mov ecx, ebx
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 0
push 0x448
mov ecx, ebx
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 0
push 0x438
mov ecx, ebx
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 0
push 0x44d
mov ecx, ebx
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
push 0
push 0x44c
mov ecx, ebx
call fcn.0041ed3e
mov ecx, eax
call fcn.0041ef1b
mov ecx, dword [esp + 0x18]
push 0
call fcn.0041ef1b
mov esi, dword [esp + 0x28]
mov ebx, 0x45cb84
call fcn.00406680
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + 0x20]
push 0
push eax
push 0x14e
push edx
call dword [sym.imp.USER32.dll_SendMessageW]
mov ecx, dword [esp + 0x14]
call fcn.00405180
mov ecx, dword [esp + 0x3c0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x3a8]
xor ecx, esp
call fcn.004362fe
mov esp, ebp
pop ebp
ret 4