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

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x101a8cb0]
xor eax, esp
mov dword [esp + 0x1ac], eax
mov eax, dword [esp + 0x1b8]
mov ecx, dword [esp + 0x1c4]
mov edx, dword [esp + 0x1cc]
push ebx
mov ebx, dword [esp + 0x1c0]
push ebp
mov ebp, dword [esp + 0x1bc]
push esi
mov esi, dword [esp + 0x1cc]
push edi
xor edi, edi
push edi
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1e4]
push edi
push ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], esi
mov dword [esp + 0x44], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], edi
call fcn.1000c5c0
xor eax, eax
push 0x54
lea ecx, [esp + 0x68]
push edi
push ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
call fcn.1002a420
mov edx, dword [esp + 0x1f0]
mov eax, 1
mov dword [esp + 0x70], eax
mov dword [esp + 0x78], eax
xor eax, eax
add esp, 0x18
cmp ax, dx
mov dword [esp + 0x5c], 0x4000
mov dword [esp + 0x64], edi
mov dword [esp + 0x30], edi
jge 0x1007c5c5
movzx ecx, dx
mov edi, ebx
rep stosd dword es:[edi], eax
movzx eax, dx
movzx ecx, ax
mov dword [esp + 0x30], ecx
xor eax, eax
cmp ax, dx
jge 0x1007c67a
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x34]
sub eax, esi
movzx edx, dx
sub esi, ebx
mov dword [esp + 0x1c], eax
mov edi, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x3c], edx
mov eax, 1
jmp 0x1007c604
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
cmp word [ecx], 2
jne 0x1007c660
push 0
push 0
push ebp
mov dword [esp + 0x24], eax
call fcn.1000c5c0
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
lea edx, [esp + 0x64]
push edx
push eax
mov eax, dword [esp + 0x3c]
add esi, edi
lea edx, [esi + ecx]
push edx
push edi
push eax
push ebp
call fcn.1007aca0
add esp, 0x24
test ax, ax
jne 0x1007c65a
mov eax, dword [esp + 0x10]
mov dword [esi], 0
test eax, eax
je 0x1007c660
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
jmp 0x1007c660
mov dword [edi], 0
add dword [esp + 0x28], 0x18
mov eax, 1
add edi, 4
sub dword [esp + 0x3c], eax
jne 0x1007c600
cmp dword [esp + 0x18], 0
jne 0x1007c692
push 0
push 0
push ebp
call fcn.1000c5c0
lea edx, [esp + 0x64]
push edx
push ebp
call fcn.1007aba0
add esp, 0x14
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1007c6a0
mov ecx, dword [esp + 0x58]
mov dword [eax], ecx
lea edx, [esp + 0x58]
push edx
push ebp
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.10079e30
add esp, 0x14
test eax, eax
jl 0x1007c935
jmp 0x1007c6d0
mov edi, dword [esp + 0x44]
cmp edi, 0xffffffff
jne 0x1007c739
mov eax, 0x7fe0
cmp word [esp + 0x40], ax
jne 0x1007c6f1
cmp word [esp + 0x42], 0x10
je 0x1007c96b
push 1
push 0
push ebp
call fcn.1000c5c0
lea ecx, [esp + 0x64]
push ecx
push ebp
mov esi, eax
call fcn.1007add0
movzx edi, ax
add esp, 0x14
test di, di
jne 0x1007c950
push 1
push 0
push ebp
call fcn.1000c5c0
push 0
mov edi, eax
push esi
push ebp
sub edi, esi
call fcn.1000c5c0
add esp, 0x18
mov dword [esp + 0x44], edi
mov dword [esp + 0x54], edi
mov edx, 0x7fe0
cmp word [esp + 0x40], dx
jne 0x1007c751
cmp word [esp + 0x42], 0x10
je 0x1007c96b
xor eax, eax
xor ecx, ecx
cmp cx, word [esp + 0x1d8]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], eax
jge 0x1007c8af
jmp 0x1007c770
movsx esi, ax
mov eax, dword [esp + 0x34]
lea edx, [esi + esi*2]
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x40]
cmp dx, word [eax]
jne 0x1007c891
mov cx, word [esp + 0x42]
cmp cx, word [eax + 2]
jne 0x1007c891
mov eax, dword [eax + 4]
test eax, eax
je 0x1007c7fa
cmp eax, edi
je 0x1007c7fa
movzx eax, dx
mov edx, eax
and edx, reloc.WSOCK32.dll_accept
jns 0x1007c7b6
dec edx
or edx, 0xfffffffe
inc edx
jne 0x1007c891
push edi
movzx ecx, cx
push ecx
push eax
lea edx, [esp + 0xc8]
push str.Bad_tag_len:___.4X___.4X___d
push edx
call fcn.10003cf0
push 0xc9a
push str.._rddfile.c
lea eax, [esp + 0xd8]
push eax
push 2
push 0x40003
call fcn.10002bc0
add esp, 0x28
jmp 0x1007c891
movsx ecx, word [esp + 0x30]
mov edx, dword [esp + 0x20]
push 1
push 0
push ebp
mov dword [edx + esi*4], ecx
call fcn.1000c5c0
mov ecx, dword [esp + 0x44]
lea edx, [edi + 4]
mov dword [ecx + esi*4], eax
mov eax, dword [esp + 0x30]
push edx
push eax
call fcn.10009ed0
add esp, 0x14
mov ebp, eax
push edi
test ebp, ebp
je 0x1007ca21
mov ecx, dword [esp + 0x18]
push ebp
push ecx
call fcn.1000b880
add esp, 0xc
cmp eax, edi
jne 0x1007ca6a
mov edx, dword [esp + 0x24]
push 0x18
push edx
call fcn.10009ed0
mov cx, word [esp + 0x48]
mov dword [ebx + esi*4], eax
mov word [eax], cx
mov edx, dword [ebx + esi*4]
mov ax, word [esp + 0x4a]
mov word [edx + 2], ax
mov ecx, dword [ebx + esi*4]
mov dword [ecx + 4], edi
mov edx, dword [ebx + esi*4]
mov dword [edx + 8], ebp
mov eax, dword [ebx + esi*4]
mov ecx, dword [eax + 8]
mov ebp, dword [esp + 0x1c]
add esp, 8
mov byte [edi + ecx], 0
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10]
inc eax
cmp ax, word [esp + 0x1d8]
mov dword [esp + 0x10], eax
jl 0x1007c770
cmp dword [esp + 0x18], 0
jne 0x1007c90d
cmp edi, 0xffffffff
jne 0x1007c8ea
lea edx, [esp + 0x58]
push edx
push ebp
call fcn.1007add0
movzx eax, ax
add esp, 8
test ax, ax
je 0x1007c90d
movzx esi, ax
push 0xcc3
push str.._rddfile.c
push esi
push 0x40003
call fcn.10002e30
add esp, 0x10
mov ax, si
jmp 0x1007c937
test edi, edi
js 0x1007c961
push 1
push 0
push ebp
call fcn.1000c5c0
add eax, edi
add esp, 0xc
test eax, eax
js 0x1007c961
push 1
push edi
push ebp
call fcn.1000c5c0
add esp, 0xc
lea eax, [esp + 0x58]
push eax
push ebp
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0xb8]
push edx
lea eax, [esp + 0x50]
push eax
call fcn.10079e30
add esp, 0x14
test eax, eax
jge 0x1007c6d0
xor eax, eax
mov ecx, dword [esp + 0x1bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1002aab0
add esp, 0x1b0
ret
push 0
push esi
push ebp
call fcn.1000c5c0
add esp, 0xc
mov ax, di
jmp 0x1007c937
mov esi, 2
jmp 0x1007c8cd
xor ecx, ecx
cmp cx, word [esp + 0x1d8]
jge 0x1007c935
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
sub eax, ecx
sub ecx, ebx
mov esi, ebx
movzx ebx, word [esp + 0x1d8]
mov dword [esp + 0x14], edx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ebx
mov ebx, 0x7fe0
cmp bx, word [edx]
jne 0x1007ca0b
mov ebx, 0x10
cmp bx, word [edx + 2]
jne 0x1007ca0b
movsx edx, word [esp + 0x30]
push 1
lea ebx, [ecx + esi]
push 0
push ebp
mov dword [ebx + eax], edx
call fcn.1000c5c0
mov dword [ebx], eax
mov eax, dword [esp + 0x30]
push 0x18
push eax
call fcn.10009ed0
mov dword [esi], eax
mov ecx, 0x7fe0
mov word [eax], cx
mov edx, dword [esi]
mov eax, 0x10
mov word [edx + 2], ax
mov ecx, dword [esi]
mov eax, dword [esp + 0x40]
mov dword [ecx + 4], edi
mov edx, dword [esi]
mov ecx, dword [esp + 0x30]
mov dword [edx + 8], 0
mov edx, dword [esp + 0x28]
add esp, 0x14
add edx, 0x18
add esi, 4
sub dword [esp + 0x20], 1
mov dword [esp + 0x14], edx
jne 0x1007c9a1
jmp 0x1007c935
movzx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x44]
push eax
push ecx
lea edx, [esp + 0xc8]
push str.__.4X__.4X__Len:_d
push edx
call fcn.10003cf0
push 0xca7
push str.._rddfile.c
lea eax, [esp + 0xd8]
push eax
push 0x66
push 0x40003
call fcn.10002bc0
add esp, 0x28
mov eax, 0x66
jmp 0x1007c937
push 0xcad
push str.._rddfile.c
push 0xca
push 0x40003
call fcn.10002e30
add esp, 0x10
mov eax, 0xca
jmp 0x1007c937