Function at 0x40dbf0
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 0x40e4e9
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 0x40de3c
mov ebx, dword [esp + 0x94]
mov ebp, dword [ebx]
cmp ebp, 4
jne 0x40dd8d
mov ebx, dword [esp + 0x90]
cmp ebx, 4
jne 0x40dd35
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40dce8
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40dce4
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 0x40dce0
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40dcd3
xor ebx, ebx
jmp 0x40dcb5
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40dd31
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.00452780
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, 0x11
cmp ecx, 8
jae 0x40dd2d
shl ebx, cl
mov byte [esp + 4], bl
call fcn.00452770
jmp 0x40dcd9
xor ebx, ebx
jmp 0x40dd20
xor ebx, ebx
jmp 0x40dcfd
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40dd64
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x40dd60
shl ebx, cl
or ebx, edx
mov byte [eax], bl
jmp 0x40dcd9
xor ebx, ebx
jmp 0x40dd55
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x13
cmp ecx, 8
jae 0x40dd89
shl ebx, cl
mov byte [esp + 4], bl
call fcn.00452770
jmp 0x40dcd9
xor ebx, ebx
jmp 0x40dd79
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 0x40ddf0
mov eax, esi
movzx ebp, byte [esi]
mov edx, ebp
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40ddec
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 0x40dde8
shl ebx, cl
or ebx, edx
mov byte [eax], bl
add esp, 0x84
ret
xor ebx, ebx
jmp 0x40dddb
xor ebx, ebx
jmp 0x40ddc0
mov dword [esp + 0x6c], esi
mov dword [esp], esi
mov ecx, dword [esp + 0x70]
mov ebx, 0x33
cmp ecx, 8
jae 0x40de38
shl ebx, cl
xor ebx, 0xffffffff
mov byte [esp + 4], bl
call fcn.00452780
mov ebx, dword [esp + 0x6c]
mov dword [esp], ebx
mov ecx, dword [esp + 0x70]
mov ebx, dword [esp + 0x34]
cmp ecx, 0x20
jae 0x40de34
shl ebx, cl
mov byte [esp + 4], bl
call fcn.00452770
jmp 0x40dde1
xor ebx, ebx
jmp 0x40de27
xor ebx, ebx
jmp 0x40de05
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 0x40dee6
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.0040e500
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 0x40e057
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 0x40e46c
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 0x40df87
mov dword [esp + 0x48], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, dword [esp + 0x2c]
cmp ecx, 0x20
jae 0x40e465
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 0x40df51
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 0x40e04d
mov ebx, dword [esp + 0x38]
cmp ebx, 0x20
ja 0x40dffc
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x38]
cmp ecx, 0x20
jae 0x40e45e
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 0x40dfca
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 0x40e457
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 0x40e077
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 0x40e3c3
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 0x40e131
mov ebx, dword [esp + 0x94]
mov dword [esp], ebx
call fcn.00440be0
mov ebx, dword [esp + 4]
mov dword [esp + 0x7c], ebx
mov ebx, dword [esp + 8]
mov dword [esp + 0x80], ebx
call fcn.004259c0
mov ebx, 0x48679f
mov dword [esp], ebx
mov dword [esp + 4], 0x16
call fcn.004263d0
call fcn.00425bd0
mov ebx, dword [esp + 0x7c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x80]
mov dword [esp + 4], ebx
call fcn.004263d0
call fcn.00425c10
call fcn.00425a40
mov ebx, 0x4894af
mov dword [esp], ebx
mov dword [esp + 4], 0x2d
call fcn.004251e0
add esp, 0x84
ret
mov ebx, dword [esp + 0x24]
cmp ebx, 2
jae 0x40e142
mov dword [esp + 0x24], 2
mov ebx, dword [esp + 0x70]
cmp ebx, 0
jne 0x40e399
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 0x40e257
mov ebp, dword [esp + 0x24]
cmp edx, ebp
jbe 0x40e1aa
mov ecx, edx
sub ecx, dword [esp + 0x24]
mov ebp, 4
sub ebp, ecx
mov ecx, ebp
mov ebx, 1
cmp ebp, 0x20
jae 0x40e250
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 0x40e1f2
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 0x40e1f2
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 0x40e1da
mov eax, ecx
add eax, 2
cmp eax, edx
jne 0x40e222
mov ebx, dword [0x4d0fb8]
cmp ebx, 0
jne 0x40e229
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.00452780
mov ebx, dword [esp + 0x5c]
mov dword [esp], ebx
mov ebx, dword [esp + 0x30]
mov byte [esp + 4], bl
call fcn.00452770
jmp 0x40e222
xor ebx, ebx
jmp 0x40e196
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 0x40e171
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 0x40e317
cmp eax, 8
jae 0x40e312
mov dword [esp + 0x44], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x40e30e
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 0x40e171
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 0x40e277
xor ebx, ebx
jmp 0x40e2ca
sub eax, 8
jmp 0x40e2d3
xor ebp, ebp
cmp edi, ebp
jne 0x40e342
cmp eax, 8
jae 0x40e339
mov ebp, ecx
mov ebx, dword [esp + 0x20]
mov ecx, eax
cmp eax, 0x20
jae 0x40e33e
shl ebx, cl
or ebx, ebp
mov ecx, ebx
add eax, dword [esp + 0x38]
sub eax, 8
jmp 0x40e2d3
xor ebx, ebx
jmp 0x40e32f
mov dword [esp + 0x4c], ecx
movzx esi, byte [edi]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x40e395
shl ebx, cl
or ebx, dword [esp + 0x4c]
mov ecx, ebx
add eax, dword [esp + 0x38]
cmp eax, 8
jae 0x40e389
mov edi, ecx
mov ebx, dword [esp + 0x50]
movzx esi, byte [ebx]
mov ebx, esi
mov ecx, eax
cmp eax, 0x20
jae 0x40e385
shl ebx, cl
or ebx, edi
mov ecx, ebx
mov edi, dword [esp + 0x50]
inc edi
jmp 0x40e2d3
xor ebx, ebx
jmp 0x40e375
sub eax, 8
mov edi, dword [esp + 0x50]
jmp 0x40e2d3
xor ebx, ebx
jmp 0x40e352
mov ebx, 0x4882d6
mov dword [esp], ebx
mov dword [esp + 4], 0x21
call fcn.004251e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x58]
jmp 0x40e274
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 0x40e0aa
xor ebx, ebx
jmp 0x40e034
xor ebx, ebx
jmp 0x40dfdf
xor ebx, ebx
jmp 0x40df67
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 0x40e057
call fcn.004489b0
jmp fcn.0040dbf0