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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x47c9c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0x38], edx
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], eax
movzx esi, byte [ebx + 0x6c]
shl esi, 8
mov dword [ebp - 0x14], eax
movzx eax, byte [ebx + 0x6b]
or esi, eax
movzx eax, byte [ebx + 0x6a]
shl esi, 8
or esi, eax
movzx eax, byte [ebx + 0x69]
push edi
mov edi, dword [ebp + 8]
shl esi, 8
or esi, eax
add esi, ebx
and dword [edi + 4], 0
call fcn.0040da25
mov dword [edi], eax
test eax, eax
je 0x40da0d
mov eax, 0xb8
mov edx, 0x7fffffff
mov dword [edi + 0x10], eax
mov ecx, esi
mov dword [edi + 8], eax
lea eax, [ebp - 0xc]
push eax
call fcn.0040d116
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 0x10]
push ecx
inc eax
push 2
pop edx
mov ecx, eax
mov dword [ebp - 0x34], eax
call fcn.0040d18e
test eax, eax
js 0x40da0a
mov eax, dword [ebp - 0x10]
lea ecx, [eax + 3]
cmp ecx, eax
jb 0x40da0a
and ecx, 0xfffffffc
mov edx, 0xb8
mov dword [ebp - 0x10], ecx
lea eax, [ecx + 0xb8]
cmp eax, edx
jb 0x40da0a
mov eax, dword [ebp - 0xc]
lea ecx, [eax + eax]
lea eax, [ecx + 0xb8]
mov dword [edi + 0xc], eax
cmp eax, edx
jl 0x40da0a
mov dword [edi + 0x14], eax
lea eax, [edi + 0xb8]
cmp eax, edi
jb 0x40da0a
push dword [ebp - 0x34]
lea edx, [ecx + 2]
mov ecx, eax
push esi
push 0
call int.004555bc
mov eax, dword [edi + 0x10]
xor ecx, ecx
mov edx, dword [ebp - 0xc]
lea eax, [eax + edx*2]
mov word [eax + edi], cx
mov ecx, ebx
call fcn.0040d1c5
mov esi, eax
xor edx, edx
push 3
pop eax
inc edx
cmp esi, eax
jne 0x40d543
and dword [edi + 0x18], 0
jmp 0x40d59f
mov ecx, dword [ebp - 0x10]
add ecx, 0xb8
mov dword [edi + 0x18], ecx
lea eax, [ecx + edi]
cmp eax, edi
jb 0x40da0a
lea edx, [ecx + 0xc]
cmp edx, ecx
jb 0x40da0a
add ecx, edi
test esi, esi
je 0x40d5b5
lea eax, [esi - 1]
xor esi, esi
inc esi
cmp eax, esi
ja 0x40d59c
and dword [ecx], 0
lea eax, [ecx + 0xc]
and dword [ecx + 4], 0
mov dword [ecx + 8], 0xc
mov dword [ebp - 0x14], eax
cmp eax, ecx
jb 0x40da0a
lea eax, [edx + 0x14]
cmp eax, edx
jb 0x40da0a
xor edx, edx
inc edx
mov al, byte [ebx + 0x55]
mov byte [edi + 0x2c], al
mov al, byte [ebx + 0x5a]
mov byte [edi + 0x2d], al
test al, 0xf
je 0x40d601
and al, 0xf2
or al, 2
jmp 0x40d605
push 0x20
pop eax
mov dword [ecx], 0xc
mov dword [ecx + 4], eax
lea esi, [eax + 0x14]
cmp esi, eax
jb 0x40da06
mov dword [ecx + 8], esi
mov eax, dword [ecx]
add eax, ecx
mov dword [ebp - 0x18], eax
cmp eax, ecx
jb 0x40da0a
mov eax, dword [ecx + 4]
add eax, ecx
mov dword [ebp - 0x1c], eax
cmp eax, ecx
jb 0x40da0a
lea eax, [ecx + esi]
mov dword [ebp - 0x14], eax
cmp eax, ecx
jb 0x40da0a
lea eax, [edx + 0x3c]
jmp 0x40d594
and al, 0xf1
or al, 1
mov byte [edi + 0x2d], al
movzx ecx, byte [ebx + 0x54]
movzx eax, byte [ebx + 0x53]
shl cx, 8
or cx, ax
movzx eax, cx
mov ecx, 0x3e8
mov word [edi + 0x2e], ax
cmp ax, cx
ja 0x40d62d
cmp ax, dx
jae 0x40d636
mov eax, 0x190
mov word [edi + 0x2e], ax
mov al, byte [edi + 0x2d]
and al, 0xf
mov dword [edi + 0x30], 0x90014
cmp al, 1
jne 0x40d64d
mov dword [edi + 0x30], 0x491014
and dword [edi + 0x1c], 0
mov ecx, ebx
call fcn.0040f2c2
mov word [edi + 0x34], ax
xor eax, eax
mov word [edi + 0x36], ax
movzx ecx, byte [ebx + 0x59]
movzx eax, byte [ebx + 0x58]
movzx esi, byte [ebx + 0x4d]
shl cx, 8
or cx, ax
shl si, 8
movzx edx, cx
mov cl, byte [ebx + 0x4c]
movzx eax, cl
or ax, si
jle 0x40d696
movsx eax, si
movzx ecx, cl
or ecx, eax
movsx eax, dx
sub eax, ecx
jmp 0x40d699
movsx eax, dx
mov word [edi + 0x38], ax
xor eax, eax
mov word [edi + 0x3a], ax
movzx ecx, byte [ebx + 0x4b]
movzx eax, byte [ebx + 0x4a]
shl cx, 8
or cx, ax
movzx esi, cx
mov word [edi + 0x3c], cx
sub edx, esi
mov word [edi + 0x3e], dx
mov word [edi + 0x40], si
mov dword [ebp - 0x10], edx
neg edx
mov word [edi + 0x42], dx
movzx ecx, byte [ebx + 0x4f]
movzx eax, byte [ebx + 0x4e]
shl cx, 8
or cx, ax
mov word [edi + 0x46], si
mov word [edi + 0x44], cx
mov word [edi + 0x4a], cx
mov word [edi + 0x48], dx
movzx ecx, byte [ebx + 0x5c]
movzx eax, byte [ebx + 0x5b]
shl cx, 8
or cx, ax
mov word [edi + 0x4c], cx
movzx ecx, byte [ebx + 0x5e]
movzx eax, byte [ebx + 0x5d]
shl cx, 8
or cx, ax
xor eax, eax
mov dword [edi + 0x54], eax
mov dword [edi + 0x58], eax
mov dword [edi + 0x5c], eax
mov dword [edi + 0x60], eax
mov eax, dword [ebp - 0x10]
add eax, esi
mov word [edi + 0x4e], cx
push 0xc
movzx eax, ax
pop ecx
cmp ax, cx
jle 0x40d735
cwde
cdq
idiv ecx
jmp 0x40d73a
xor esi, esi
lea eax, [esi + 1]
movsx esi, ax
or ecx, 0xffffffff
mov dword [ebp - 0xc], eax
mov word [edi + 0x64], ax
mov eax, esi
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
mov eax, dword [ebp - 0xc]
mov word [edi + 0x68], ax
lea eax, [esi + 1]
sar eax, 1
movzx ecx, cx
sub eax, ecx
mov word [edi + 0x66], cx
sub eax, dword [ebp - 0x10]
movzx eax, ax
test ax, ax
jle 0x40d776
add eax, ecx
mov word [edi + 0x66], ax
movzx eax, byte [ebx + 0x4d]
movzx ecx, byte [ebx + 0x4a]
shl ax, 8
movsx edx, ax
movzx eax, byte [ebx + 0x4c]
or edx, eax
mov esi, dword [0x47dc88]
movzx eax, byte [ebx + 0x4b]
shl ax, 8
cwde
or eax, ecx
sub eax, edx
add eax, 2
cdq
push 3
pop ecx
idiv ecx
mov ecx, esi
mov word [edi + 0x6a], ax
mov al, byte [ebx + 0x5f]
mov byte [edi + 0x6c], al
mov al, byte [ebx + 0x60]
mov byte [edi + 0x6d], al
mov al, byte [ebx + 0x62]
add al, byte [ebx + 0x5f]
mov dl, byte [ebx + 0x61]
add dl, byte [ebx + 0x5f]
mov byte [ebp - 6], al
mov byte [edi + 0x6f], al
xor eax, eax
inc eax
mov byte [ebp - 5], dl
push eax
lea eax, [ebp - 5]
mov byte [edi + 0x6e], dl
push eax
push 0
push 2
lea eax, [edi + 0x74]
push eax
call dword [0x480148]
call esi
mov esi, dword [0x47dc88]
xor eax, eax
inc eax
mov ecx, esi
push eax
lea eax, [ebp - 6]
push eax
push 0
push 2
lea eax, [edi + 0x76]
push eax
call dword [0x480148]
call esi
mov edx, dword [ebp - 0x38]
xor esi, esi
mov ecx, dword [edx + 0xc]
mov ax, word [edx + 0x10]
mov word [edi + 0x70], ax
mov ax, word [edx + ecx*8 + 0xa]
dec ax
add ax, word [edx + ecx*8 + 8]
mov word [edi + 0x72], ax
xor eax, eax
mov dword [edi + 0x50], eax
inc eax
mov dword [edi + 0x28], esi
mov dword [edi + 0x78], eax
mov dword [edi + 0x7c], esi
movzx edx, byte [ebx + 0x47]
movzx eax, byte [ebx + 0x46]
shl edx, 8
or edx, eax
mov dword [edi + 0x84], edx
movzx ecx, byte [ebx + 0x49]
movzx eax, byte [ebx + 0x48]
shl ecx, 8
or ecx, eax
mov dword [edi + 0x80], ecx
xor ecx, ecx
inc ecx
test edx, edx
jne 0x40d86b
mov dword [edi + 0x84], ecx
cmp dword [edi + 0x80], esi
jne 0x40d879
mov dword [edi + 0x80], ecx
test byte [edi + 0x34], 1
jne 0x40d88d
mov dword [edi + 0x88], esi
mov dword [edi + 0x8c], ecx
jmp 0x40d89d
mov dword [edi + 0x88], ecx
mov dword [edi + 0x8c], 2
movsx eax, word [edi + 0x46]
mov dword [edi + 0x94], eax
movsx eax, word [edi + 0x4e]
mov dword [edi + 0x98], eax
movsx eax, word [edi + 0x48]
mov dword [edi + 0x9c], eax
mov dword [edi + 0x90], esi
mov dword [edi + 0xa0], 0x6e6b6e55
mov dword [edi + 0xa4], esi
mov dword [edi + 0xa8], esi
mov byte [edi + 0xac], cl
mov al, byte [edi + 0x2d]
and al, 0xf0
cmp al, 0x20
push 0x64
setne al
dec al
and al, 0xb
mov byte [edi + 0xad], al
movzx eax, byte [ebx + 0x54]
movzx ecx, byte [ebx + 0x53]
shl eax, 8
or eax, ecx
cdq
pop ecx
idiv ecx
inc al
mov byte [edi + 0xae], al
movzx ecx, byte [ebx + 0x57]
movzx eax, byte [ebx + 0x56]
shl ecx, 8
or ecx, eax
neg ecx
sbb cl, cl
xor eax, eax
and cl, 9
mov dword [edi + 0xb0], eax
mov byte [edi + 0xaf], cl
mov word [edi + 0xb4], ax
cmp dword [edi + 0x18], eax
je 0x40da0d
mov edx, dword [ebp - 0x18]
mov ebx, 0x2bc
mov word [ebp - 0x30], ax
mov byte [ebp - 0x2e], al
mov al, byte [edi + 0xae]
mov byte [ebp - 0x2d], al
mov ax, word [edi + 0x2e]
mov word [ebp - 0x2c], ax
mov ax, word [edi + 0x34]
mov word [ebp - 0x2a], ax
mov ax, word [edi + 0x4c]
mov word [ebp - 0x28], ax
mov ax, word [edi + 0x4e]
mov word [ebp - 0x26], ax
mov eax, dword [edi + 0x88]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x8c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
test edx, edx
je 0x40d9b0
push 5
pop ecx
lea esi, [ebp - 0x30]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov byte [eax + 3], 8
push 0x20
pop ecx
or word [edx + 6], cx
inc word [edx + 8]
inc word [edx + 0xa]
mov word [edx + 4], bx
mov edx, dword [ebp - 0x1c]
xor ebx, ebx
inc ebx
test edx, edx
je 0x40d9d2
push 5
pop ecx
lea esi, [ebp - 0x30]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
or word [edx + 6], bx
mov dword [edx + 0xc], ebx
mov dword [edx + 0x10], 2
test eax, eax
je 0x40da0d
push 5
pop ecx
lea esi, [ebp - 0x30]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
or word [eax + 6], 0x21
mov ecx, 0x2bc
inc word [eax + 8]
inc word [eax + 0xa]
mov byte [eax + 3], 8
mov word [eax + 4], cx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], 2
jmp 0x40da0d
or dword [ecx + 8], 0xffffffff
and dword [edi], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00475950
mov esp, ebp
pop ebp
ret 4