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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x108
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x100]
mov dword [esp + 0xec], 0
mov dword [esp + 0xe8], 0x574f
mov byte [esp + 0xe7], 0x5d
mov dword [esp + 0xe0], 0x5014
mov byte [esp + 0x9f], 0xbb
mov byte [esp + 0x77], 0xad
mov bl, byte [esp + 0xf5]
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x53d7
mov esi, dword [esp + 0xf8]
mov edi, dword [esp + 0xfc]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0xe0]
add eax, 0xb97
mov dword [esp + 0x60], eax
mov al, bl
mul bl
mov byte [esp + 0xf5], al
mov eax, dword [esp + 0x60]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0xe8]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0xec]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x5c]
add eax, 0xffffc7d8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x58]
adc eax, 0xffffffff
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov bh, byte [esp + 0x9f]
mov eax, dword [esp + 0x64]
mov dword [esp + 0x90], eax
mov dword [esp + 0xb0], ecx
mov dword [esp + 0xcc], 1
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0xc0], ecx
mov ecx, dword [esp + 0x90]
mov ecx, dword [ecx]
mov dword [esp + 0xc4], ecx
mov ecx, dword [esp + 0x90]
mov ecx, dword [ecx + 4]
mov ax, word [esp + 0xf6]
mov dword [esp + 0x88], ecx
mov word [esp + 0xf6], ax
mov ecx, dword [esp + 0xc0]
mov dword [esp], ecx
mov dword [esp + 0x4c], edi
mov word [esp + 0x4a], ax
mov dword [esp + 0x44], edx
mov byte [esp + 0x43], bl
mov dword [esp + 0x3c], esi
mov byte [esp + 0x3b], bh
call fcn.004184a0
mov bl, 0xa6
mov dword [esp + 0x7c], eax
sub bl, byte [esp + 0xe7]
mov eax, dword [esp + 0x7c]
add eax, 0x18
add eax, 0x60
mov bh, byte [esp + 0x3b]
cmp bh, bl
mov dword [esp + 0x34], eax
jbe 0x403a84
mov eax, dword [esp + 0x34]
add eax, 8
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x78]
cmp dword [eax + 4], 0
jbe 0x403a9e
mov eax, dword [esp + 0xc0]
mov ecx, dword [esp + 0x78]
mov ecx, dword [ecx]
add eax, ecx
mov dword [esp + 0xfc], 0
mov dword [esp + 0xf8], 0
mov dword [esp + 0x100], 0x3231
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0xe0]
add eax, 0xffffafec
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx + 0xc]
mov dx, word [esp + 0x4a]
add dx, 0x740b
mov word [esp + 0xf6], dx
cmp ecx, eax
je 0x403a9c
mov eax, dword [esp + 0xc4]
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x6c]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0xc0]
mov dword [esp + 0xd4], eax
sub ecx, 0xfbb
setb bl
xor eax, eax
test edx, edx
mov bh, al
mov byte [esp + 0x33], bh
mov dword [esp + 0x2c], ecx
mov byte [esp + 0x2b], bl
je 0x403780
mov al, byte [esp + 0x33]
mov byte [esp + 0x2b], al
mov al, byte [esp + 0x2b]
test al, al
jne 0x40390d
jmp 0x40378e
mov eax, dword [esp + 0xb4]
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0xa8]
add eax, dword [esp + 0xd4]
mov edx, esp
mov dword [edx], eax
call ecx
sub esp, 4
mov ecx, dword [esp + 0x44]
imul edx, ecx, 0x1394
mov dword [esp + 0x100], edx
mov dword [esp + 0xc8], eax
cmp dword [esp + 0xc8], 0
jne 0x4037d6
jmp 0x403a9c
mov al, 0x5d
sub al, byte [esp + 0xe7]
mov byte [esp + 0xaf], al
mov ecx, dword [esp + 0xb4]
mov al, byte [esp + 0xaf]
mov ecx, dword [ecx]
mov dword [esp + 0x98], ecx
cmp al, 0x64
jae 0x4036b7
mov eax, dword [esp + 0xe0]
xor eax, 0x5014
cmp dword [esp + 0x98], eax
je 0x403877
mov eax, dword [esp + 0x44]
add eax, eax
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x44]
imul edx, eax, 0xa74
mov esi, dword [esp + 0xb4]
mov dword [esp + 0x100], edx
add ecx, dword [esi]
mov dword [esp + 0xdc], ecx
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx + 0x10]
add ecx, dword [esp + 0xc0]
mov bl, byte [esp + 0x43]
add bl, 0xd6
mov byte [esp + 0xf5], bl
mov dword [esp + 0xd8], ecx
jmp 0x4038ed
mov al, 0x77
mov ecx, dword [esp + 0xc0]
mov dword [esp + 0x8c], ecx
mov dl, byte [esp + 0x77]
mov ecx, dword [esp + 0xb4]
mov ecx, dword [ecx + 0x10]
mov dword [esp + 0x94], ecx
mov ah, byte [esp + 0x43]
sub ah, 0x7b
mov byte [esp + 0xf5], ah
cmp al, dl
ja 0x4036d0
mov eax, dword [esp + 0x94]
add eax, dword [esp + 0x8c]
mov dword [esp + 0xdc], eax
mov cl, byte [esp + 0x43]
and cl, 0x47
mov eax, dword [esp + 0xc0]
mov edx, dword [esp + 0xb4]
add eax, dword [edx + 0x10]
mov byte [esp + 0xf5], cl
mov dword [esp + 0xd8], eax
jmp 0x4038ef
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0xe0]
mov eax, dword [eax]
xor ecx, 0x5014
cmp eax, ecx
je 0x403a6a
mov eax, dword [esp + 0xe0]
add eax, 0xffffafec
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xdc]
mov eax, dword [eax]
and eax, 0x80000000
cmp eax, 0
je 0x40397e
mov eax, dword [esp + 0xdc]
mov ecx, dword [esp + 0x88]
mov byte [esp + 0xf5], 3
mov eax, dword [eax]
and eax, 0xffff
mov edx, dword [esp + 0xc8]
mov esi, esp
mov dword [esi + 4], eax
mov dword [esi], edx
call ecx
sub esp, 8
lea ecx, [0x40124c]
mov dword [esp + 0xb8], eax
mov dword [esp], ecx
call fcn.0041a630
mov dword [esp + 0x24], eax
jmp 0x4039f5
lea eax, [0x40124c]
mov cl, byte [esp + 0x43]
mov byte [esp + 0xf5], cl
mov edx, dword [esp + 0xdc]
mov edx, dword [edx]
mov esi, dword [esp + 0xc0]
add esi, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0xfc], edx
mov edi, dword [esp + 0x3c]
mov dword [esp + 0xf8], edi
mov dword [esp + 0xd0], esi
mov dword [esp], eax
call fcn.0041a630
mov edx, dword [esp + 0xd0]
add edx, 2
mov esi, dword [esp + 0xc8]
mov edi, dword [esp + 0x88]
mov ebx, esp
mov dword [ebx + 4], edx
mov dword [ebx], esi
mov dword [esp + 0x20], eax
call edi
sub esp, 8
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xd8]
mov ecx, dword [esp + 0xb8]
mov dword [eax], ecx
mov eax, dword [esp + 0xd8]
cmp dword [eax], 0
jne 0x403a41
lea eax, [0x40124c]
mov ecx, dword [esp + 0xe0]
xor ecx, 0x5014
mov dword [esp], eax
mov dword [esp + 0x1c], ecx
call fcn.0041a630
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0xcc], ecx
mov dword [esp + 0x18], eax
jmp 0x403a6a
jmp 0x403a43
mov eax, dword [esp + 0xdc]
add eax, 4
mov dword [esp + 0xdc], eax
mov eax, dword [esp + 0xd8]
add eax, 4
mov dword [esp + 0xd8], eax
jmp 0x4038ef
mov eax, 0x1a7a
cmp eax, dword [esp + 0xbc]
je 0x403a9e
cmp dword [esp + 0xcc], 0
jne 0x403a84
jmp 0x403a9c
jmp 0x403a86
mov eax, dword [esp + 0xb4]
add eax, 0x14
mov dword [esp + 0xb4], eax
jmp 0x403707
jmp 0x403a9e
mov eax, dword [esp + 0xe8]
mov ecx, dword [esp + 0xec]
mov edx, eax
add edx, 0xffffc235
mov esi, ecx
adc esi, 0xffffffff
xor eax, edx
mov dword [esp + 0xa0], edx
mov dword [esp + 0xa4], esi
xor ecx, esi
xor eax, 0x46d
or eax, ecx
mov dword [esp + 0x14], eax
je 0x40390d
jmp 0x403ade
mov eax, esp
mov dword [eax], 0x40124c
call fcn.0041a630
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x84]
mov esi, dword [esp + 0xe8]
mov edi, dword [esp + 0xec]
xor esi, ecx
mov ecx, dword [esp + 0x44]
imul ebx, ecx, 0x13d8
mov dword [esp + 0x100], ebx
xor edi, edx
xor esi, 0x7fd0
or esi, edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], esi
je 0x403a43
jmp 0x403b34
mov eax, dword [esp + 0xcc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret