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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x432684
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0xa0
test eax, eax
push ebx
push ebp
push esi
push edi
mov ebp, ecx
je 0x407cb0
push 1
push 0x20
lea ecx, [esp + 0x64]
call fcn.00409460
push 0x17
push 0
lea eax, [esp + 0x64]
push 0x646
push eax
mov dword [esp + 0xc8], 0
call fcn.00405a30
add esp, 0x10
test eax, eax
jle 0x407c9c
mov eax, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
lea ecx, [esp + 0x12]
mov esi, eax
push ecx
push 0x443a8c
lea ecx, [esp + 0x78]
add ebp, 0x94
mov dword [esp + 0x34], eax
call fcn.00403470
mov dl, byte [esp + 0x12]
push 0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 1
mov byte [esp + 0x1c], dl
call fcn.00403d30
push str.___r_n________r_n__
lea ecx, [esp + 0x84]
mov byte [esp + 0xbc], 2
call fcn.004010b0
push str.__.__
lea ecx, [esp + 0x9c]
mov byte [esp + 0xbc], 3
call fcn.004010b0
lea eax, [esp + 0x13]
lea ecx, [esp + 0x4c]
push eax
mov byte [esp + 0xbc], 4
call fcn.00403330
mov eax, dword [esp + 0x2c]
add esi, edi
mov bl, 5
cmp eax, esi
mov byte [esp + 0xb8], bl
mov dword [esp + 0x14], esi
jae 0x4076eb
lea ecx, [esp + 0x4c]
push 0
lea edx, [esp + 0x30]
push ecx
push edx
call fcn.00406ae0
add esp, 0xc
test eax, eax
jl 0x4076eb
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x407561
mov eax, 0x43464c
push eax
lea ecx, [esp + 0x9c]
call fcn.00401390
test eax, eax
je 0x4075bb
lea eax, [esp + 0x48]
push 1
push eax
lea ecx, [esp + 0xa0]
call fcn.004013f0
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xb8], 6
push ecx
push edx
lea ecx, [esp + 0x78]
call fcn.004048f0
lea ecx, [esp + 0x48]
mov byte [esp + 0xb8], bl
call fcn.00426adb
jmp 0x4076e1
mov eax, dword [esp + 0x50]
test eax, eax
jne 0x4075c8
mov eax, 0x43464c
push eax
lea ecx, [esp + 0x84]
call fcn.00401390
test eax, eax
je 0x4076e1
mov ecx, dword [0x434648]
lea edx, [esp + 0x70]
push ecx
push 0
push edx
lea ecx, [esp + 0x24]
call fcn.00403970
mov edi, 0x43f16c
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43f16c
lea ecx, [esp + 0x20]
call fcn.00403570
lea eax, [esp + 0x44]
push 1
push eax
lea ecx, [esp + 0x88]
call fcn.004013f0
mov edx, dword [eax]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xb8], 7
push ecx
push edx
lea ecx, [esp + 0x20]
call fcn.00403570
lea ecx, [esp + 0x44]
mov byte [esp + 0xb8], bl
call fcn.00426adb
lea ecx, [esp + 0x18]
call fcn.00403b90
mov esi, dword [esp + 0x1c]
push 0x406ac0
lea ecx, [esp + 0x1c]
call fcn.00403720
push eax
push esi
call fcn.004089e0
add esp, 0xc
lea ecx, [esp + 0x34]
push 2
push ecx
lea ecx, [esp + 0x88]
call fcn.004013f0
mov esi, dword [eax]
lea edx, [esp + 0x18]
push edx
lea ecx, [ebp + 4]
mov byte [esp + 0xbc], 8
call fcn.00407f30
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push esi
mov ecx, edx
call fcn.004048f0
lea ecx, [esp + 0x34]
mov byte [esp + 0xb8], bl
call fcn.00426adb
mov eax, dword [ebp + 0x2c]
lea ecx, [ebp + 0x24]
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00404710
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x2c], esi
jb 0x407538
push 1
lea ecx, [esp + 0x50]
mov byte [esp + 0xbc], 4
call fcn.00403d30
lea ecx, [esp + 0x98]
mov byte [esp + 0xb8], 3
call fcn.00401350
lea ecx, [esp + 0x80]
mov byte [esp + 0xb8], 2
call fcn.00401350
push 1
lea ecx, [esp + 0x1c]
mov byte [esp + 0xbc], 1
call fcn.00403d30
push 1
lea ecx, [esp + 0x74]
mov byte [esp + 0xbc], 0
call fcn.00403d30
push 0x443a8c
lea eax, [esp + 0x17]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push str.TCP_IP_CUR_SERVER
call fcn.00403470
sub esp, 0x10
lea edx, [esp + 0x36]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push str.WT_SERVER
mov byte [esp + 0xe4], 9
call fcn.00403470
mov esi, dword [esp + 0xe4]
mov byte [esp + 0xdc], 0
mov ecx, esi
call fcn.00407ce0
mov ecx, dword [0x43f5ec]
mov dword [esp + 0x28], ecx
push eax
lea edx, [esp + 0x2c]
push str.TCP_IP_DEPTID_d
push edx
mov byte [esp + 0xc4], 0xa
call fcn.00425810
add esp, 0xc
lea eax, [esp + 0x13]
lea ecx, [esp + 0x28]
push 0x443a8c
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00407cd0
push eax
mov ecx, edi
call fcn.00403470
sub esp, 0x10
lea edx, [esp + 0x36]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push str.WT_SERVER
mov byte [esp + 0xe4], 0xb
call fcn.00403470
mov ecx, esi
mov byte [esp + 0xdc], 0xa
call fcn.004028f0
push eax
lea ecx, [esp + 0x3c]
call fcn.00426b49
push 0x443a8c
mov byte [esp + 0xbc], 0xc
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x28], esp
lea eax, [esp + 0x52]
lea ecx, [esp + 0x4c]
push eax
call fcn.00407cd0
push eax
mov ecx, edi
call fcn.00403470
sub esp, 0x10
lea edx, [esp + 0x63]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push str.DEPTID_TO_SERVER
mov byte [esp + 0xe4], 0xd
call fcn.00403470
mov ecx, ebp
mov byte [esp + 0xdc], 0xc
call fcn.004028f0
push eax
lea ecx, [esp + 0x44]
call fcn.00426b49
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 0xe
call fcn.00425823
push 0x443a8c
lea eax, [esp + 0x37]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
push str.TCP_IP_SERVER_NUM
call fcn.00403470
sub esp, 0x10
lea edx, [esp + 0x35]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push str.WT_SERVER
mov byte [esp + 0xe4], 0xf
call fcn.00403470
mov ecx, esi
mov byte [esp + 0xdc], 0xe
call fcn.00407ce0
mov edi, eax
xor esi, esi
test edi, edi
jle 0x407c69
mov bl, 0x10
push esi
lea eax, [esp + 0x2c]
push str.TCP_IP_ADDRESS_d
push eax
call fcn.00425810
add esp, 0xc
lea ecx, [esp + 0x11]
push 0x443a8c
sub esp, 0x10
mov ebp, esp
mov dword [esp + 0x28], esp
push ecx
lea ecx, [esp + 0x40]
call fcn.00407cd0
push eax
mov ecx, ebp
call fcn.00403470
sub esp, 0x10
lea edx, [esp + 0x57]
mov ecx, esp
mov dword [esp + 0x58], esp
push edx
push str.WT_SERVER
mov byte [esp + 0xe4], bl
call fcn.00403470
mov ecx, dword [esp + 0xe4]
mov byte [esp + 0xdc], 0xe
call fcn.004028f0
push eax
lea ecx, [esp + 0x30]
call fcn.00426b49
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 0x11
call fcn.00425823
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x2c]
push eax
push ecx
call fcn.00413f65
add esp, 8
test eax, eax
je 0x4079ab
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 0xe
call fcn.00426adb
inc esi
cmp esi, edi
jl 0x4078f1
jmp 0x407c69
push esi
lea edx, [esp + 0x2c]
push str.TCP_IP_DEPTID_d
push edx
call fcn.00425810
mov ebx, dword [esp + 0x44]
mov ebp, dword [esp + 0x34]
mov eax, str.WT_SERVER
add esp, 0xc
test eax, eax
je 0x407a96
test ebp, ebp
je 0x407a96
mov cl, byte [esp + 0x11]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00403d30
mov edi, str.WT_SERVER
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.WT_SERVER
lea ecx, [esp + 0x20]
call fcn.004048f0
mov edi, 0x43f16c
or ecx, 0xffffffff
xor eax, eax
mov byte [esp + 0xb8], 0x12
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 0x43f16c
lea ecx, [esp + 0x20]
call fcn.00403570
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
lea ecx, [esp + 0x20]
call fcn.00403570
push ebx
lea edx, [esp + 0x1c]
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push edx
call fcn.00403350
mov ecx, dword [esp + 0xd4]
call fcn.00402c60
mov eax, dword [esp + 0x1c]
mov byte [esp + 0xb8], 0x11
test eax, eax
je 0x407a96
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407a8d
cmp al, 0xff
je 0x407a8d
dec al
mov byte [ecx], al
jmp 0x407a96
push ecx
call fcn.00426fbb
add esp, 4
push esi
lea eax, [esp + 0x2c]
push 0x43f1a0
push eax
call fcn.00425810
mov ecx, dword [esp + 0x34]
mov edx, str.WT_SERVER
add esp, 0xc
mov dword [esp + 0x14], ecx
test edx, edx
je 0x407c58
mov eax, str.TCP_IP_CUR_SERVER
test eax, eax
je 0x407c58
mov cl, byte [esp + 0x11]
push 0
mov byte [esp + 0x1c], cl
lea ecx, [esp + 0x1c]
call fcn.00403d30
mov edi, str.WT_SERVER
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
lea ecx, [esp + 0x1c]
push ebp
call fcn.00403c10
test al, al
je 0x407b24
mov edi, dword [esp + 0x1c]
mov ecx, ebp
mov edx, ecx
mov esi, str.WT_SERVER
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [eax + ebp], 0
mov edi, 0x43f16c
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + 0xb8], 0x13
mov esi, ecx
mov ecx, dword [0x434648]
sub ecx, edx
cmp ecx, esi
ja 0x407b52
call fcn.0042069d
xor ebx, ebx
cmp esi, ebx
jbe 0x407b98
mov edx, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x1c]
lea ebp, [edx + esi]
push ebp
call fcn.00403c10
test al, al
je 0x407b98
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push ebp
lea edi, [ecx + eax]
mov ecx, esi
mov edx, ecx
mov esi, 0x43f16c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.00403b70
mov edi, str.TCP_IP_CUR_SERVER
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
mov eax, dword [0x434648]
not ecx
dec ecx
sub eax, edx
mov esi, ecx
cmp eax, esi
ja 0x407bbd
call fcn.0042069d
cmp esi, ebx
jbe 0x407c03
mov eax, dword [esp + 0x20]
push ebx
lea ecx, [esp + 0x1c]
lea ebp, [eax + esi]
push ebp
call fcn.00403c10
test al, al
je 0x407c03
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
lea edi, [edx + ecx]
mov ecx, esi
mov eax, ecx
mov esi, str.TCP_IP_CUR_SERVER
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov byte [ecx + ebp], 0
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push edx
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x28], esp
push eax
call fcn.00403350
mov ecx, dword [esp + 0xd4]
call fcn.00402c60
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x407c4c
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x407c43
cmp al, 0xff
je 0x407c43
dec al
mov byte [ecx], al
jmp 0x407c4c
push ecx
call fcn.00426fbb
add esp, 4
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ecx, [esp + 0x2c]
mov byte [esp + 0xb8], 0xe
call fcn.00426adb
lea ecx, [esp + 0x40]
mov byte [esp + 0xb8], 0xc
call fcn.00426adb
lea ecx, [esp + 0x38]
mov byte [esp + 0xb8], 0xa
call fcn.00426adb
lea ecx, [esp + 0x28]
mov byte [esp + 0xb8], 0
call fcn.00426adb
lea ecx, [esp + 0x5c]
mov dword [esp + 0xb8], 0xffffffff
call fcn.004094b0
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xac
ret 4