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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xf8
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0x46a3
mov word [esp + 0xd6], 0x64b4
mov byte [esp + 0xd5], 0xd4
mov dword [esp + 0xd0], 0x5e43
mov byte [esp + 0x59], 0xf4
mov edx, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
xor edi, edi
mov ebx, 0xbe9d
sub ebx, edx
sbb edi, esi
mov dword [esp + 0x88], ebx
mov dword [esp + 0x8c], edi
mov edi, edx
and edi, edi
mov ebx, esi
and ebx, ebx
mov dword [esp + 0xdc], ebx
mov dword [esp + 0xd8], edi
mov word [esp + 0x9a], 0x431d
mov edi, dword [esp + 0xd0]
mov ebx, 0xc76f
sub ebx, edi
mov dword [esp + 0x30], ebx
mov ebx, dword [esp + 0xd0]
add ebx, 0xffffaaf8
mov dword [esp + 0x94], ebx
mov dword [esp + 0xb4], 0xe0b
mov dword [esp + 0xc4], 0
mov dword [esp + 0xc0], 0x1ad7
mov word [esp + 0x6a], 0x7799
mov dword [esp + 0x9c], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x28], edi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], edx
call fcn.004038a0
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x70]
mov eax, dword [eax + 0xc]
add eax, 0x14
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x5c]
mov cl, byte [esp + 0xf3]
mov ch, cl
and ch, ch
mov eax, dword [eax]
mov byte [esp + 0xf3], ch
mov dword [esp + 0x64], eax
mov byte [esp + 0x1f], cl
jmp 0x403469
mov eax, 0xbbf7
mov ecx, dword [esp + 0xb8]
sub eax, dword [esp + 0xd0]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x80], ecx
mov ecx, dword [esp + 0xd0]
add ecx, 0xffffaa6f
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x3c]
mov dx, word [esp + 0xf0]
or dx, 0x5e76
mov word [esp + 0xf0], dx
cmp eax, ecx
ja 0x40333c
jmp 0x403402
mov dword [esp + 0x34], 0
jmp 0x403859
mov eax, dword [esp + 0xd0]
add eax, 0xffffa1bf
mov cx, word [esp + 0xf0]
or cx, 0x6fee
mov word [esp + 0xf0], cx
mov edx, dword [esp + 0xbc]
mov esi, dword [esp + 0xb8]
mov dword [esp + 0x18], eax
mov eax, edx
xor edx, edx
mov edi, dword [esp + 0x18]
div edi
mov dword [esp + 0xe4], 0x112f
cmp esi, eax
jb 0x4037eb
jmp 0x40357a
mov eax, 0x5e43
sub eax, dword [esp + 0xd0]
cmp dword [esp + 0x78], eax
je 0x4034e6
jmp 0x4033da
mov eax, dword [esp + 0x64]
mov cl, byte [esp + 0xd5]
xor cl, 0x84
mov dword [esp + 0x74], eax
cmp cl, byte [esp + 0x47]
jbe 0x4033b1
jmp 0x403235
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], eax
jmp 0x403859
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
mov edx, dword [esp + 0xe8]
mov esi, dword [esp + 0xec]
xor edi, edi
mov ebx, 0xb432
sub ebx, edx
sbb edi, esi
mov dl, byte [esp + 0x1f]
or dl, 0xfe
mov esi, dword [esp + 0x80]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x84]
mov byte [esp + 0xf3], dl
movzx eax, word [esi + eax*2]
mov dword [esp + 0x60], eax
mov dx, word [esp + 0x68]
mov word [esp + 0x90], dx
mov eax, dword [esp + 0x14]
xor ebx, eax
xor edi, ecx
or ebx, edi
mov dword [esp + 0x10], ebx
je 0x403859
jmp 0x403737
mov eax, dword [esp + 0x24]
not eax
mov ecx, dword [esp + 0x20]
not ecx
mov dword [esp + 0xd8], ecx
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0x74]
mov eax, dword [eax]
mov dword [esp + 0x64], eax
jmp 0x403469
mov eax, dword [esp + 0x28]
imul ecx, eax, 0x5dcb
mov dword [esp + 0xe4], ecx
jmp 0x403430
cmp word [esp + 0x9a], 0x50bd
jne 0x403691
jmp 0x4037eb
cmp dword [esp + 0x9c], 0
jne 0x4035f6
jmp 0x4036c3
mov dword [esp + 0xe4], 0xffffa962
cmp dword [esp + 0xb0], 0
jne 0x4036e3
jmp 0x40347c
mov eax, dword [esp + 0x28]
imul ecx, eax, 0x21fd
mov dword [esp + 0xe4], ecx
mov ecx, dword [esp + 0xd0]
add ecx, 0xffffa1be
add ecx, dword [esp + 0xb8]
mov dword [esp + 0xb8], ecx
mov byte [esp + 0xf3], 0x91
jmp 0x40329e
mov eax, dword [esp + 0x5c]
cmp dword [esp + 0x64], eax
jne 0x403786
jmp 0x403559
mov al, byte [esp + 0xd5]
add al, 0xf3
mov ecx, dword [esp + 0xe8]
mov edx, dword [esp + 0xec]
xor ecx, 0x36ad
mov byte [esp + 0x46], al
mov dword [esp + 0x4c], edx
mov dword [esp + 0x48], ecx
mov al, byte [esp + 0x46]
mov byte [esp + 0x47], al
xor esi, esi
mov edi, 0x1516
sub edi, ecx
sbb esi, edx
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
jb 0x40330e
jmp 0x40347c
mov eax, 0xbb9a
sub eax, dword [esp + 0xd0]
cmp eax, dword [esp + 0xcc]
ja 0x403820
jmp 0x4033ed
jmp 0x40357a
mov ax, 0x9067
mov cx, word [esp + 0xd6]
mov dx, 0xc8e2
sub dx, cx
mov esi, dword [esp + 0xac]
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x20]
add esi, 0x7232
mov edi, dword [esp + 0x24]
adc edi, 0
mov cx, word [esp + 0xd6]
mov dword [esp + 0xdc], edi
mov dword [esp + 0xd8], esi
sub ax, cx
mov word [esp + 0x92], dx
mov esi, dword [esp + 0x28]
mov dword [esp + 0xe4], esi
cmp word [esp + 0x92], ax
jb 0x4036e3
jmp 0x40332f
mov eax, 0x7394
sub eax, dword [esp + 0xd0]
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x94]
mov dword [esp + 0x40], edx
cmp eax, ecx
jae 0x4035d2
jmp 0x4035d2
mov eax, 0x8263
mov ecx, dword [esp + 0xd0]
mov edx, dword [esp + 0xd0]
mov si, word [esp + 0xd6]
sub eax, ecx
xor si, 0xfa8
xor edx, 0x431e
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0xa4]
mov word [esp + 0x5a], si
mov si, word [esp + 0x5a]
mov word [esp + 0x2c], si
mov si, word [esp + 0x6a]
mov word [esp + 0x2e], si
cmp edx, eax
jbe 0x40362a
jmp 0x40382c
mov al, 0xc3
mov ecx, dword [esp + 0x40]
mov dl, byte [esp + 0x1f]
sub al, dl
mov byte [esp + 0xf3], al
cmp ecx, 0x19aa
jne 0x403291
jmp 0x403430
mov al, byte [esp + 0xd5]
add al, 0x54
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0xac], ecx
cmp al, byte [esp + 0x59]
jae 0x403820
jmp 0x4034eb
mov eax, dword [esp + 0x34]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ax, word [esp + 0xd6]
mov cx, 0x808c
sub cx, ax
mov edx, dword [esp + 0x20]
mov dword [esp + 0xd8], edx
mov esi, dword [esp + 0x24]
mov dword [esp + 0xdc], esi
cmp cx, word [esp + 0x2c]
jne 0x40382c
jmp 0x403820
mov ax, word [esp + 0xf0]
mov cx, word [esp + 0x68]
mov word [esp + 0xf0], ax
mov edx, dword [esp + 0xd0]
xor edx, 0x5e19
movzx esi, cx
cmp esi, edx
jle 0x4033ed
jmp 0x403235
mov eax, 0x5ea4
mov ecx, dword [esp + 0xd0]
sub eax, dword [esp + 0xd0]
mov dx, word [esp + 0x68]
add ecx, 0xffffa1fe
movzx esi, dx
add eax, esi
sub eax, ecx
mov dx, ax
mov word [esp + 0x68], dx
jmp 0x403235
mov eax, dword [esp + 0xd0]
add eax, 0xffffa1bd
mov dword [esp + 0x78], 0
mov dword [esp + 0xb8], eax
jmp 0x40329e
mov eax, 0x4932
mov cx, 0x7c5
mov edx, dword [esp + 0xd0]
add edx, 0xffffe2f7
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0xb4]
mov dword [esp + 0xcc], esi
mov esi, dword [esp + 0xa8]
add esi, 0x18
mov dword [esp + 0x54], esi
sub cx, word [esp + 0xf0]
mov word [esp + 0xf0], cx
cmp eax, edx
jne 0x4034c8
jmp 0x403786
movzx eax, word [esp + 0x90]
mov ecx, dword [esp + 0x60]
mov dword [esp + 0xdc], 0
mov dword [esp + 0xd8], 0xa2d
cmp ecx, eax
sete dl
and dl, 1
movzx eax, dl
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0xd0]
add eax, 0xffffa1bd
movzx ecx, word [esp + 0x68]
cmp ecx, eax
je 0x4034e6
jmp 0x4032f3
mov eax, dword [esp + 0x64]
mov ecx, eax
add ecx, 0xfffffff8
mov dword [esp + 0xa8], ecx
mov dx, word [eax + 0x24]
mov eax, dword [esp + 0x20]
or eax, eax
mov ecx, dword [esp + 0x24]
or ecx, ecx
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xd8], eax
movzx eax, dx
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + 0x30]
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xa8]
mov eax, dword [eax + 0x18]
cmp eax, dword [esp + 0x9c]
je 0x403402
jmp 0x4036c3
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0xb8]
mov dx, word [eax + ecx*2]
mov eax, dword [esp + 0xd0]
add eax, 0xffffa1fe
mov word [esp + 0x68], dx
movzx ecx, word [esp + 0x68]
cmp ecx, eax
jge 0x40365f
jmp 0x403235
mov eax, dword [esp + 0x54]
mov eax, dword [eax]
mov dword [esp + 0x34], eax
jmp 0x403859
mov eax, dword [esp + 0x78]
mov dword [esp + 0xb0], eax
mov cx, word [esp + 0x2e]
mov dl, byte [esp + 0x1f]
sub dl, dl
mov byte [esp + 0xf3], dl
cmp cx, 0x192f
jbe 0x4033da
jmp 0x403415
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
add eax, 0xffffc622
adc ecx, 0xffffffff
mov edx, dword [esp + 0x88]
mov esi, dword [esp + 0x8c]
xor eax, edx
xor ecx, esi
or eax, ecx
mov dword [esp + 4], eax
je 0x403430
jmp 0x40361c