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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 4]
cmp eax, dword [ecx + 8]
jbe 0x40e2a9
sub esp, 0x84
mov ecx, dword [esp + 0x88]
xor ebx, ebx
mov ebx, dword [0x4c3860]
mov ebp, ecx
sub ebp, ebx
mov ebx, dword [0x4c3860]
sub ecx, ebx
shr ecx, 2
xor ebx, ebx
mov esi, dword [0x4c3858]
mov ebp, ecx
shr ebp, 2
sub esi, ebp
dec esi
and ecx, 3
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], ecx
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], ecx
mov dword [esp + 0x70], ecx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 0x14]
mov dword [esp + 0x50], ebp
mov ebx, dword [esp + 0x8c]
cmp ebx, 8
jne 0x40dbfc
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
cmp ebp, 4
jne 0x40db4d
mov ebx, dword [esp + 0x90]
cmp ebx, 4
jne 0x40daf5
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40daa8
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40daa4
shl ebx, cl
xor ebx, 0xffffffff
and ebx, edx
mov byte [eax], bl
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x11
cmp ecx, 8
jae 0x40daa0
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40da93
xor ebx, ebx
jmp 0x40da75
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40daf1
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.00452420
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, 0x11
cmp ecx, 8
jae 0x40daed
shl ebx, cl
mov byte [esp + 4], bl
call fcn.00452410
jmp 0x40da99
xor ebx, ebx
jmp 0x40dae0
xor ebx, ebx
jmp 0x40dabd
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40db24
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x40db20
shl ebx, cl
or ebx, edx
mov byte [eax], bl
jmp 0x40da99
xor ebx, ebx
jmp 0x40db15
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x40db49
shl ebx, cl
mov byte [esp + 4], bl
call fcn.00452410
jmp 0x40da99
xor ebx, ebx
jmp 0x40db39
mov ebx, dword [esp + 0x50]
movzx ebp, byte [ebx]
mov edi, ebp
and edi, 3
or edi, 0x10
mov dword [esp + 0x34], edi
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40dbb0
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40dbac
shl ebx, cl
xor ebx, 0xffffffff
and ebx, edx
mov byte [eax], bl
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, edi
cmp ecx, 0x20
jae 0x40dba8
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40db9b
xor ebx, ebx
jmp 0x40db80
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40dbf8
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.00452420
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
cmp ecx, 0x20
jae 0x40dbf4
shl ebx, cl
mov byte [esp + 4], bl
call fcn.00452410
jmp 0x40dba1
xor ebx, ebx
jmp 0x40dbe7
xor ebx, ebx
jmp 0x40dbc5
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x6c], esi
mov dword [esp + 0x5c], esi
mov ebx, dword [esp + 0x94]
movzx ebp, byte [ebx + 0xf]
mov ebx, ebp
and ebx, 0x40
cmp bl, 0
je 0x40dca6
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 0x14]
mov eax, 4
add ebx, eax
mov eax, ebx
mov dword [esp], esi
mov ebx, dword [esp + 0x70]
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov dword [esp + 8], ebp
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov dword [esp + 0xc], ebp
mov ebx, dword [esp + 0x90]
mov dword [esp + 0x10], ebx
mov ebx, dword [esp + 0x8c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
call fcn.0040e2c0
add esp, 0x84
ret
mov edi, dword [esp + 0x50]
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x90]
cmp ebp, ebx
jae 0x40de17
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
cmp ebx, 0x19
ja 0x40e22c
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], 0
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jae 0x40dd47
mov dword [esp + 0x48], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x20
jae 0x40e225
shl ebx, cl
or ebx, dword [esp + 0x48]
mov ecx, ebx
inc edi
mov ebx, dword [esp + 0x2c]
add ebx, 8
mov dword [esp + 0x2c], ebx
mov ebx, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
cmp ebx, ebp
jb 0x40dd11
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
shr ebx, 2
mov dword [esp + 0x28], ebx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x28]
add ebx, dword [esp + 0x28]
cmp ebx, 0x19
ja 0x40de0d
mov ebx, dword [esp + 0x38]
cmp ebx, 0x20
ja 0x40ddbc
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x40e21e
shl ebx, cl
or ebx, ebp
mov dword [esp + 0x20], ebx
mov ebx, dword [esp + 0x38]
add ebx, dword [esp + 0x38]
mov dword [esp + 0x38], ebx
mov ebx, dword [esp + 0x38]
cmp ebx, 0x20
jbe 0x40dd8a
mov ebx, 0x19
mov esi, eax
mov ecx, edx
mov ebp, dword [esp + 0x28]
mov eax, ebx
xor edx, edx
div ebp
mov ebx, eax
mov edx, ecx
mov eax, esi
imul ebx, dword [esp + 0x28]
mov dword [esp + 0x38], ebx
mov ebp, dword [esp + 0x20]
mov ebx, 1
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x40e217
shl ebx, cl
dec ebx
and ebx, ebp
mov dword [esp + 0x20], ebx
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x3c], ecx
mov ebx, dword [esp + 0x38]
mov dword [esp + 0x28], ebx
xor edi, edi
mov dword [esp + 0x60], 0
mov dword [esp + 0x58], edi
xor ebp, ebp
cmp edi, ebp
je 0x40de37
movzx ebp, byte [edi]
mov ecx, ebp
mov dword [esp + 0x3c], ebp
inc edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x28], 8
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x90]
cmp ebp, ebx
jne 0x40e183
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x24]
cmp ebx, 0
jne 0x40def1
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
call fcn.004409a0
mov ebx, dword [esp + 4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x80], ebx
call fcn.00425780
mov ebx, 0x48642a
mov dword [esp], ebx
mov dword [esp + 4], 0x16
call fcn.00426190
call fcn.00425990
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
call fcn.00426190
call fcn.004259d0
call fcn.00425800
mov ebx, 0x489122
mov dword [esp], ebx
mov dword [esp + 4], 0x2d
call fcn.00424fa0
add esp, 0x84
ret
mov ebx, dword [esp + 0x24]
cmp ebx, 2
jae 0x40df02
mov dword [esp + 0x24], 2
mov ebx, dword [esp + 0x70]
cmp ebx, 0
jne 0x40e159
mov ebx, ecx
and ebx, 0xf
or ebx, 0xd0
mov dword [esp + 0x30], ebx
mov edx, dword [esp + 0x1c]
add edx, 4
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jb 0x40e017
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jbe 0x40df6a
mov ecx, edx
sub ecx, dword [esp + 0x24]
mov ebp, 4
sub ebp, ecx
mov ecx, ebp
mov ebx, 1
cmp ebp, 0x20
jae 0x40e010
shl ebx, cl
dec ebx
mov ebp, dword [esp + 0x30]
mov eax, ebx
shl ebx, 4
or ebx, eax
and ebx, ebp
mov dword [esp + 0x30], ebx
mov ecx, dword [esp + 0x8c]
shr ecx, 2
cmp edx, ecx
ja 0x40dfb2
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov byte [ebx], al
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x30], 0
add edx, 4
cmp edx, ecx
ja 0x40dfb2
xor eax, eax
mov ebx, dword [esp + 0x5c]
mov byte [ebx], al
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
add edx, 4
cmp edx, ecx
jbe 0x40df9a
mov eax, ecx
add eax, 2
cmp eax, edx
jne 0x40dfe2
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40dfe9
mov ebx, dword [esp + 0x5c]
movzx esi, byte [ebx]
mov ebx, esi
and ebx, 0xcc
mov ebp, dword [esp + 0x30]
or ebx, ebp
mov ebp, dword [esp + 0x5c]
mov byte [ebp], bl
add esp, 0x84
ret
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov byte [esp + 4], 0xcc
call fcn.00452420
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 4], bl
call fcn.00452410
jmp 0x40dfe2
xor ebx, ebx
jmp 0x40df56
mov eax, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
mov byte [ebx], al
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
shr ecx, 4
mov eax, dword [esp + 0x28]
sub eax, 4
sub eax, 4
mov ebx, ecx
and ebx, 0xf
or ebx, 0xf0
mov dword [esp + 0x30], ebx
add edx, 4
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jae 0x40df31
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
shr ecx, 4
mov ebp, dword [esp + 0x60]
cmp edi, ebp
je 0x40e0d7
cmp eax, 8
jae 0x40e0d2
mov dword [esp + 0x44], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x40e0ce
shl ebx, cl
or ebx, dword [esp + 0x44]
mov ecx, ebx
inc edi
mov ebx, ecx
and ebx, 0xf
or ebx, 0xf0
mov dword [esp + 0x30], ebx
add edx, 4
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jae 0x40df31
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x5c]
xchg esi, eax
mov byte [ebx], al
xchg esi, eax
mov ebx, dword [esp + 0x5c]
dec ebx
mov dword [esp + 0x5c], ebx
shr ecx, 4
jmp 0x40e037
xor ebx, ebx
jmp 0x40e08a
sub eax, 8
jmp 0x40e093
xor ebp, ebp
cmp edi, ebp
jne 0x40e102
cmp eax, 8
jae 0x40e0f9
mov ebp, ecx
mov ebx, dword [esp + 0x20]
mov ecx, eax
cmp eax, 0x20
jae 0x40e0fe
shl ebx, cl
or ebx, ebp
mov ecx, ebx
add eax, dword [esp + 0x38]
sub eax, 8
jmp 0x40e093
xor ebx, ebx
jmp 0x40e0ef
mov dword [esp + 0x4c], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x40e155
shl ebx, cl
or ebx, dword [esp + 0x4c]
mov ecx, ebx
add eax, dword [esp + 0x38]
cmp eax, 8
jae 0x40e149
mov edi, ecx
mov ebx, dword [esp + 0x50]
movzx esi, byte [ebx]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x40e145
shl ebx, cl
or ebx, edi
mov ecx, ebx
mov edi, dword [esp + 0x50]
inc edi
jmp 0x40e093
xor ebx, ebx
jmp 0x40e135
sub eax, 8
mov edi, dword [esp + 0x50]
jmp 0x40e093
xor ebx, ebx
jmp 0x40e112
mov ebx, 0x487f49
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.00424fa0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
jmp 0x40e034
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
mov esi, eax
mov dword [esp + 0x40], edx
mov eax, dword [esp + 0x90]
xor edx, edx
div ebx
mov ebx, eax
mov edx, dword [esp + 0x40]
mov eax, esi
dec ebx
mov esi, ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov dword [esp + 0x4c], ebp
mov ebx, dword [esp + 0x4c]
imul esi, ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov dword [esp + 0x4c], ebp
mov ebx, dword [esp + 0x4c]
mov ebp, esi
add ebp, ebx
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x90]
xor edx, edx
div ebx
mov ebp, eax
mov eax, dword [esp + 0x40]
dec ebp
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx]
imul ebp, ebx
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
add ebp, ebx
mov ebx, ebp
shr ebx, 2
mov dword [esp + 0x24], ebx
jmp 0x40de6a
xor ebx, ebx
jmp 0x40ddf4
xor ebx, ebx
jmp 0x40dd9f
xor ebx, ebx
jmp 0x40dd27
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx + 4]
mov ebx, dword [esp + 0x94]
mov ebx, dword [ebx + 4]
shr ebx, 2
add ebx, 7
mov ebx, dword [esp + 0x94]
mov esi, dword [ebx + 4]
shr esi, 2
add esi, 7
shr esi, 3
dec esi
mov ebx, dword [esp + 0x50]
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x54]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x4c]
add ebx, esi
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
mov dword [esp + 0x44], ebp
mov ebx, dword [esp + 0x44]
shr ebx, 2
mov dword [esp + 0x44], ebx
mov ebx, esi
shl ebx, 3
mov ebp, dword [esp + 0x44]
sub ebp, ebx
mov dword [esp + 0x38], ebp
jmp 0x40de17
call fcn.00448770
jmp fcn.0040d9b0