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

Disassembly:
sub esp, 0x58
mov eax, dword [0x10a78b80]
xor eax, esp
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x6c]
push ebx
mov ebx, dword [esp + 0x64]
cmp byte [eax + 0x3adab], 0
push ebp
push esi
mov esi, dword [esp + 0x70]
push edi
mov edi, dword [esp + 0x78]
mov dword [esp + 0x34], eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x44], ecx
je 0x10100584
cmp byte [eax + 0x3adac], 0
je 0x10100584
mov al, byte [eax + 0x3abf0]
test al, al
je 0x101003ce
cmp al, 2
jne 0x10100584
mov eax, dword [esi]
mov dword [esp + 0x38], eax
movzx edx, byte [eax + 0x106cd5f8]
movzx eax, byte [eax + 0x106cd610]
cmp edx, eax
jne 0x10100584
mov eax, dword [ebx]
mov ebp, closesocket
mov ecx, dword [ebx + 4]
lea ebx, [edi + 0x10]
mov dword [esp + 0x40], eax
shl eax, 2
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
shl ecx, 2
mov dword [esp + 0x2c], ecx
mov eax, dword [eax + 0x1008]
mov ecx, dword [esi + 0xc]
mov eax, dword [eax + 0x8c]
shr eax, 3
and eax, 1
push eax
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x1c]
push eax
push edx
push dword [ecx + 0x10]
push dword [ecx]
push edi
call fcn.1012fd10
push dword [esp + 0x30]
push ebx
call fcn.10130310
add esp, 0x24
mov dword [esp + 0x20], eax
cmp eax, 1
jle 0x10100584
push dword [esp + 0x14]
push ebx
call fcn.10130140
add esp, 8
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], edx
nop dword [eax]
lea eax, [esp + 0x48]
push eax
call fcn.10449810
add esp, 4
mov edi, dword [eax + 4]
mov edx, dword [eax]
movzx eax, dx
mov dword [esp + 0x30], eax
cmp dword [esp + 0x24], edi
jne 0x10100557
mov eax, dword [esp + 0x28]
mov ebx, edx
movzx ecx, ax
shr ebx, 0x10
sub ebx, ecx
movzx eax, bx
mov dword [esp + 0x50], eax
mov eax, edx
shrd eax, edi, 0x10
sub ax, cx
mov ecx, dword [esp + 0x30]
shl ax, 3
mov word [esp + 0x1c], ax
mov eax, dword [esp + 0x2c]
movzx eax, ax
sub ecx, eax
sub edx, eax
movzx edi, cx
mov ecx, dword [esp + 0x34]
shl edx, 3
mov word [esp + 0x1e], dx
mov eax, dword [ecx + 0x3e7a8]
push dword [eax + 0x24]
lea eax, [ecx + 0x3abf0]
push dword [esp + 0x3c]
push dword [esp + 0x44]
push dword [esp + 0x4c]
push dword [esp + 0x28]
push eax
push dword [esp + 0x34]
call fcn.101005a0
add esp, 0x1c
test eax, eax
je 0x10100557
movsx eax, di
mov word [esp + 0x12], di
mov word [esp + 0x10], bx
cmp eax, dword [esi + 0x30]
jl 0x10100557
movsx eax, di
cmp eax, dword [esi + 0x34]
jg 0x10100557
movsx eax, bx
cmp eax, dword [esi + 0x38]
jl 0x10100557
mov eax, dword [esp + 0x50]
cwde
cmp eax, dword [esi + 0x3c]
jg 0x10100557
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call fcn.10103530
add esp, 0xc
cmp eax, ebp
jge 0x10100557
mov ecx, dword [esp + 0x44]
mov ebp, eax
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
lea eax, [esp + 0x48]
push eax
call fcn.10449820
add esp, 4
sub dword [esp + 0x20], 1
jne 0x10100470
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
mov ecx, dword [esp + 0x54]
xor ecx, esp
call fcn.105116c0
add esp, 0x58
ret
mov ecx, dword [esp + 0x64]
mov eax, closesocket
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.105116c0
add esp, 0x58
ret