Function at 0x1003a820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10079ac7
mov eax, dword fs:[0]
push eax
sub esp, 0xccc
mov eax, dword [0x10093034]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xc9c], 0
mov dword [ebp - 0xcd0], 0
mov eax, 2
shl eax, 5
mov ecx, 0x72
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x14
mov ecx, 0x69
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0xa
mov ecx, 0x69
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x1f
mov ecx, 0x75
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 5
mov ecx, 0x41
mov word [ebp + eax - 0x98], cx
mov edx, 2
shl edx, 3
mov eax, 0x5c
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x53
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0xe
mov eax, 0x73
mov word [ebp + edx - 0x98], ax
mov ecx, 2
shl ecx, 4
mov edx, 0x66
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0xb
mov edx, 0x63
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x27
mov edx, 0x72
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 3
mov edx, 0x54
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x1a
mov edx, 0x20
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x13
mov edx, 0x57
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x23
mov edx, 0x6e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x29
mov edx, 0x69
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x22
mov edx, 0x65
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x1b
mov edx, 0x4e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 7
mov edx, 0x45
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x12
mov edx, 0x5c
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x1c
mov edx, 0x54
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x25
mov edx, 0x56
mov word [ebp + ecx - 0x98], dx
mov eax, 2
shl eax, 0
mov ecx, 0x4f
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0xd
mov ecx, 0x6f
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x2a
mov ecx, 0x6f
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x19
mov ecx, 0x73
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x28
mov ecx, 0x73
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x1e
mov ecx, 0x43
mov word [ebp + eax - 0x98], cx
mov edx, 2
imul eax, edx, 0x16
mov ecx, 0x64
mov word [ebp + eax - 0x98], cx
mov edx, 2
shl edx, 2
mov eax, 0x57
mov word [ebp + edx - 0x98], ax
mov ecx, 2
shl ecx, 1
mov edx, 0x46
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x21
mov edx, 0x72
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x15
mov edx, 0x6e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0xf
mov edx, 0x6f
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x18
mov edx, 0x77
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0xc
mov edx, 0x72
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x2b
mov edx, 0x6e
mov word [ebp + ecx - 0x98], dx
mov eax, 2
imul ecx, eax, 0x2c
mov dword [ebp - 0xca8], ecx
cmp dword [ebp - 0xca8], 0x5a
jae 0x1003ab80
jmp 0x1003ab85
call fcn.1004f3f2
xor edx, edx
mov eax, dword [ebp - 0xca8]
mov word [ebp + eax - 0x98], dx
mov ecx, 2
imul edx, ecx, 0x24
mov eax, 0x74
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 6
mov eax, 0x52
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 9
mov eax, 0x4d
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x11
mov eax, 0x74
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x17
mov eax, 0x6f
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x26
mov eax, 0x65
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 0x1d
mov eax, 0x5c
mov word [ebp + edx - 0x98], ax
mov ecx, 2
imul edx, ecx, 9
mov eax, 0x6f
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 0xc
mov eax, 0x63
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 7
mov eax, 0x50
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 5
mov eax, 0x61
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 0xb
mov eax, 0x75
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
imul edx, ecx, 0xe
mov eax, 0x49
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
shl ecx, 1
mov edx, 0x67
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
shl eax, 4
mov dword [ebp - 0xcac], eax
cmp dword [ebp - 0xcac], 0x22
jae 0x1003acbe
jmp 0x1003acc3
call fcn.1004f3f2
xor ecx, ecx
mov edx, dword [ebp - 0xcac]
mov word [ebp + edx - 0x3c], cx
mov eax, 2
imul ecx, eax, 3
mov edx, 0x69
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
imul ecx, eax, 0xa
mov edx, 0x64
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
imul ecx, eax, 0xd
mov edx, 0x74
mov word [ebp + ecx - 0x3c], dx
mov eax, 2
shl eax, 0
mov ecx, 0x69
mov word [ebp + eax - 0x3c], cx
mov edx, 2
imul eax, edx, 0
mov ecx, 0x44
mov word [ebp + eax - 0x3c], cx
mov edx, 2
imul eax, edx, 0xf
mov ecx, 0x64
mov word [ebp + eax - 0x3c], cx
mov edx, 2
imul eax, edx, 6
mov ecx, 0x6c
mov word [ebp + eax - 0x3c], cx
mov edx, 2
shl edx, 2
mov eax, 0x74
mov word [ebp + edx - 0x3c], ax
mov ecx, 2
shl ecx, 3
mov edx, 0x72
mov word [ebp + ecx - 0x3c], dx
push 0x800
push 0
lea eax, [ebp - 0xc98]
push eax
call fcn.100520d0
add esp, 0xc
mov dword [ebp - 0xcb0], 0x800
lea ecx, [ebp - 0xcbc]
push ecx
push 0x101
push 0
lea edx, [ebp - 0x98]
push edx
push reloc.WS2_32.dll_bind
call fcn.10046ee0
add esp, 0x14
test eax, eax
jne 0x1003af7b
lea eax, [ebp - 0xcb0]
push eax
lea ecx, [ebp - 0xc98]
push ecx
push 0
push 0
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0xcbc]
push eax
call fcn.10047020
add esp, 0x18
mov dword [ebp - 0xcc0], eax
cmp dword [ebp - 0xcc0], 0
jne 0x1003af6c
push 0x400
push 0
lea ecx, [ebp - 0x498]
push ecx
call fcn.100520d0
add esp, 0xc
mov edx, dword [ebp - 0xcb0]
push edx
lea eax, [ebp - 0x498]
push eax
lea ecx, [ebp - 0xc98]
push ecx
call fcn.10036a20
add esp, 0xc
mov edx, 2
shl edx, 1
mov dword [ebp - 0xcb4], edx
cmp dword [ebp - 0xcb4], 6
jae 0x1003ae3f
jmp 0x1003ae44
call fcn.1004f3f2
xor eax, eax
mov ecx, dword [ebp - 0xcb4]
mov word [ebp + ecx - 0x18], ax
mov edx, 2
imul eax, edx, 0
mov ecx, 0x25
mov word [ebp + eax - 0x18], cx
mov edx, 2
shl edx, 0
mov eax, 0x73
mov word [ebp + edx - 0x18], ax
lea ecx, [ebp - 0x498]
mov dword [ebp - 0xca0], ecx
cmp dword [ebp - 0xca0], 0
jne 0x1003ae99
mov dword [ebp - 0xcb8], 0
jmp 0x1003af2b
mov edx, dword [ebp - 0xca0]
push edx
call fcn.100343d0
add esp, 4
mov dword [ebp - 0xca4], eax
mov eax, dword [ebp - 0xca4]
lea eax, [eax + eax + 2]
call fcn.1004f6c0
mov dword [ebp - 0xccc], esp
lea ecx, [ebp - 0xcd8]
call fcn.10033cd0
mov dword [ebp - 0xcc4], eax
mov ecx, dword [ebp - 0xcc4]
mov dword [ebp - 0xcc8], ecx
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xc9c]
or edx, 1
mov dword [ebp - 0xc9c], edx
mov eax, dword [ebp - 0xcc8]
push eax
mov ecx, dword [ebp - 0xca4]
push ecx
mov edx, dword [ebp - 0xca0]
push edx
mov eax, dword [ebp - 0xca4]
lea ecx, [eax + eax + 2]
push ecx
mov edx, dword [ebp - 0xccc]
push edx
call fcn.1003c180
add esp, 0x14
mov dword [ebp - 0xcb8], eax
mov eax, dword [ebp - 0xcb8]
push eax
lea ecx, [ebp - 0x18]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10042610
add esp, 0x14
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc9c]
and ecx, 1
je 0x1003af6c
and dword [ebp - 0xc9c], 0xfffffffe
lea ecx, [ebp - 0xcd8]
call fcn.10033cb0
mov edx, dword [ebp - 0xcbc]
push edx
call fcn.10046c80
add esp, 4
lea esp, [ebp - 0xcdc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004f6b2
mov esp, ebp
pop ebp
ret