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

Disassembly:
push 0xffffffffffffffff
push 0x50ded1
mov eax, dword fs:[0]
push eax
sub esp, 0x68
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5467a4]
xor eax, esp
push eax
lea eax, [esp + 0x7c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x94]
xor esi, esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x84], 1
mov ebx, dword [ebp + 8]
cmp dword [ebp + 4], ebx
jbe 0x40d968
call fcn.004e89bf
mov edi, dword [ebp + 4]
cmp edi, dword [ebp + 8]
jbe 0x40d975
call fcn.004e89bf
cmp ebp, esi
je 0x40d97d
cmp ebp, ebp
je 0x40d982
call fcn.004e89bf
cmp ebx, edi
je 0x40da3b
cmp ebp, esi
mov edi, ebp
mov dword [esp + 0x18], ebx
jne 0x40d999
call fcn.004e89bf
cmp ebx, dword [ebp + 4]
ja 0x40d9a3
call fcn.004e89bf
lea esi, [ebx - 4]
cmp esi, dword [edi + 8]
mov dword [esp + 0x14], esi
jb 0x40d9b4
call fcn.004e89bf
mov eax, dword [esi]
mov esi, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x60]
push esi
push ecx
call fcn.0040d4e0
mov eax, dword [esp + 0x6c]
xor ecx, ecx
add esp, 0xc
cmp eax, ecx
je 0x40d9e1
push eax
call fcn.004e7d7e
add esp, 4
xor ecx, ecx
mov eax, dword [esi + 0x14]
cmp eax, ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], ecx
jne 0x40d9fd
mov dword [esp + 0x94], ecx
jmp 0x40da09
mov edx, dword [esi + 0x18]
sub edx, eax
mov dword [esp + 0x94], edx
lea eax, [esp + 0x94]
push eax
call fcn.00406c70
lea edi, [esi + 0x34]
push edi
lea esi, [esp + 0x50]
call fcn.00406c70
add dword [edi], 0xffffffff
cmp ebx, dword [ebp + 4]
ja 0x40da30
call fcn.004e89bf
mov ebx, dword [esp + 0x14]
xor esi, esi
jmp 0x40d968
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov byte [esp + 0x84], 2
mov ecx, dword [ebp + 4]
cmp ecx, esi
je 0x40da67
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
cmp eax, 0xf
jae 0x40da92
cmp ecx, esi
jne 0x40da6b
xor eax, eax
jmp 0x40da73
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
lea ecx, [esp + 0x94]
or al, 0xa0
push ecx
lea esi, [esp + 0x40]
mov byte [esp + 0x98], al
call fcn.0041dc80
jmp 0x40db53
lea edx, [esp + 0x94]
push edx
lea esi, [esp + 0x40]
mov byte [esp + 0x98], 0xaf
call fcn.0041dc80
mov ecx, dword [ebp + 4]
test ecx, ecx
jne 0x40dab6
xor eax, eax
jmp 0x40dabe
mov eax, dword [ebp + 8]
sub eax, ecx
sar eax, 2
push 0
push 0
push eax
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x3c]
push ecx
call fcn.0040e7a0
add esp, 0x14
mov byte [esp + 0x84], 3
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
mov dword [esp + 0x94], eax
jbe 0x40db00
call fcn.004e89bf
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp ecx, eax
lea edi, [esp + 0x2c]
mov ebp, ecx
jbe 0x40db0f
call fcn.004e89bf
mov ebx, dword [esp + 0x44]
cmp dword [esp + 0x40], ebx
lea esi, [esp + 0x2c]
jbe 0x40db22
call fcn.004e89bf
mov edx, dword [esp + 0x94]
push edx
push edi
push ebp
push esi
lea eax, [esp + 0x4c]
push ebx
push eax
mov esi, eax
call fcn.00421a80
mov byte [esp + 0x84], 2
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40db53
push eax
call fcn.004e7d7e
add esp, 4
mov edi, dword [esp + 0x8c]
xor eax, eax
mov dword [edi + 4], eax
mov dword [edi + 8], eax
mov dword [edi + 0xc], eax
mov esi, dword [esp + 0x50]
mov eax, dword [esp + 0x54]
cmp esi, eax
mov dword [esp + 0x1c], 1
jbe 0x40db82
call fcn.004e89bf
mov eax, dword [esp + 0x54]
lea ebx, [esp + 0x4c]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], esi
mov edi, edi
cmp dword [esp + 0x50], eax
mov ebp, eax
jbe 0x40db9d
call fcn.004e89bf
test ebx, ebx
je 0x40dba9
lea eax, [esp + 0x4c]
cmp ebx, eax
je 0x40dbae
call fcn.004e89bf
cmp esi, ebp
je 0x40dcd2
test ebx, ebx
jne 0x40dbbf
call fcn.004e89bf
cmp esi, dword [ebx + 8]
jb 0x40dbc9
call fcn.004e89bf
mov ecx, dword [esi]
push ecx
lea eax, [esp + 0x70]
call fcn.004219d0
mov edx, dword [esp + 0x94]
mov byte [esp + 0x88], 4
mov ecx, dword [edx + 0x30]
push ecx
push eax
lea edx, [esp + 0x68]
push edx
call fcn.004101c0
add esp, 0x10
mov byte [esp + 0x84], 6
mov eax, dword [esp + 0x70]
xor esi, esi
cmp eax, esi
je 0x40dc11
push eax
call fcn.004e7d7e
add esp, 4
mov ebx, dword [edi + 4]
cmp ebx, dword [edi + 8]
mov dword [esp + 0x70], esi
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
jbe 0x40dc2a
call fcn.004e89bf
lea esi, [esp + 0x20]
lea edi, [esp + 0x5c]
call fcn.0041dc40
lea esi, [esp + 0x2c]
mov ebp, eax
call fcn.0041dc10
mov edx, dword [ebp]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp + 4]
mov dword [ecx + 4], edx
mov edx, dword [ebp + 8]
mov dword [ecx + 8], edx
mov edx, dword [eax]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
mov dword [ecx + 8], eax
mov eax, dword [esp + 0xa4]
push ebx
push eax
push eax
call fcn.00421a30
mov byte [esp + 0x84], 2
mov eax, dword [esp + 0x60]
xor esi, esi
cmp eax, esi
je 0x40dc97
push eax
call fcn.004e7d7e
add esp, 4
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
cmp edx, dword [ecx + 8]
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
jb 0x40dcb5
call fcn.004e89bf
add dword [esp + 0x18], 4
mov eax, dword [esp + 0x54]
mov esi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x8c]
jmp 0x40db90
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp eax, ecx
mov dword [esp + 0x94], ecx
jbe 0x40dcf2
call fcn.004e89bf
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
cmp eax, ecx
lea ebp, [esp + 0x3c]
mov dword [esp + 0x14], eax
jbe 0x40dd03
call fcn.004e89bf
mov esi, dword [edi + 4]
cmp esi, dword [edi + 8]
lea ebx, [esp + 0x3c]
jbe 0x40dd14
call fcn.004e89bf
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x14]
push eax
push ebp
push ecx
push ebx
push esi
push edi
mov esi, edi
call fcn.00421a80
mov ebx, dword [edi + 8]
cmp dword [edi + 4], ebx
jbe 0x40dd39
call fcn.004e89bf
mov eax, dword [edi + 4]
cmp eax, dword [edi + 8]
mov dword [esp + 0x94], eax
jbe 0x40dd4d
call fcn.004e89bf
mov esi, dword [esp + 0x90]
mov ebp, dword [esi + 0x14]
add esi, 0x10
cmp ebp, dword [esi + 8]
jbe 0x40dd64
call fcn.004e89bf
mov edx, dword [esp + 0x94]
push ebx
push edi
push edx
push edi
push ebp
push esi
call fcn.00421a80
mov eax, dword [esp + 0x40]
xor esi, esi
cmp eax, esi
je 0x40dd89
push eax
call fcn.004e7d7e
add esp, 4
mov eax, dword [esp + 0x50]
cmp eax, esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
je 0x40dda6
push eax
call fcn.004e7d7e
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x7c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret