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

Disassembly:
push 0xffffffffffffffff
push 0x4524ce
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x17c
push ebx
push ebp
push esi
lea eax, [esp + 0x48]
push edi
push eax
push str..eme
call dword [0x453068]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
je 0x40de23
mov ecx, dword [0x45a844]
xor esi, esi
mov ebx, dword [ecx + 0xdc]
test ebx, ebx
jbe 0x40d90a
xor edi, edi
mov edx, dword [0x45a844]
mov eax, dword [edx + 0xd8]
lea edx, [esp + 0x78]
lea ecx, [eax + edi + 0x3c]
push ecx
push edx
call fcn.0043a6b0
add esp, 8
test eax, eax
je 0x40dd51
inc esi
add edi, 0x184
cmp esi, ebx
jb 0x40d8d0
cmp esi, 0xffffffff
je 0x40dd51
lea eax, [esp + 0x38]
lea ecx, [esp + 0x78]
push eax
push ecx
call fcn.0040ff90
add esp, 8
test eax, eax
je 0x40dd51
call fcn.0040d420
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x19c]
mov ebx, eax
lea edi, [esp + 0x78]
mov dword [esp + 0x2c], ebx
mov dword [ebx], edx
mov eax, dword [esp + 0x3c]
mov dword [ebx + 4], eax
mov dword [ebx + 0x38], ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x3c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + 0x7c]
push ecx
push 0x105
call dword [0x453190]
lea edx, [esp + 0x78]
push 0x455b54
push edx
call fcn.00447089
mov edi, eax
add esp, 8
test edi, edi
mov dword [esp + 0x34], edi
je 0x40dd51
push 0
push 0
push edi
call fcn.00446f9f
push edi
push 1
lea eax, [esp + 0x54]
push 8
push eax
call fcn.00446e88
add esp, 0x1c
mov byte [esp + 0x48], 0
mov ebp, str.RREDATA
lea esi, [esp + 0x40]
mov cl, byte [esi]
mov dl, byte [ebp]
mov al, cl
cmp cl, dl
jne 0x40d9ec
test al, al
je 0x40d9e8
mov dl, byte [esi + 1]
mov cl, byte [ebp + 1]
mov al, dl
cmp dl, cl
jne 0x40d9ec
add esi, 2
add ebp, 2
test al, al
jne 0x40d9c3
xor eax, eax
jmp 0x40d9f1
sbb eax, eax
sbb eax, 0xffffffff
xor ebp, ebp
cmp eax, ebp
jne 0x40dd48
lea esi, [ebx + 0xc]
push 2
push 0xfffffffffffffffc
push edi
mov dword [esi], ebp
call fcn.00446f9f
push edi
push 1
push 4
push esi
call fcn.00446e88
mov eax, dword [esi]
add esp, 0x1c
cmp eax, ebp
je 0x40dd48
lea eax, [eax + eax*2]
shl eax, 5
push eax
call fcn.004466d7
add esp, 4
cmp eax, ebp
mov dword [ebx + 8], eax
jne 0x40da4d
mov ecx, dword [0x45a610]
mov dword [ecx + 0x140], 1
jmp 0x40dd48
mov eax, dword [esi]
push 2
lea edx, [eax + eax*2]
mov eax, 0xffffffd4
shl edx, 5
sub eax, edx
push eax
push edi
call fcn.00446f9f
push edi
lea eax, [ebx + 0x10]
push 1
push 0x28
push eax
call fcn.00446e88
mov ecx, dword [esi]
mov edx, dword [ebx + 8]
push edi
push ecx
push 0x60
push edx
call fcn.00446e88
mov esi, dword [esi]
add esp, 0x2c
cmp esi, ebp
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], ebp
jbe 0x40dd48
mov dword [esp + 0x18], ebp
mov ebp, dword [esp + 0x18]
mov eax, dword [ebx + 8]
add ebp, eax
push 0x60
lea esi, [ebx + 0x10]
push ebp
push esi
call fcn.0040fb60
mov eax, dword [ebp + 0x44]
mov dword [ebp + 0x58], ebx
mov edx, dword [ebx + 0x38]
add esp, 0xc
or edx, eax
mov dword [ebx + 0x38], edx
mov eax, dword [ebp + 0x48]
sub eax, 3
je 0x40db01
dec eax
je 0x40daee
dec eax
je 0x40dadb
mov dword [ebp + 0x5c], 0
jmp 0x40dd28
mov dword [ebp + 0x48], 0x10000005
mov dword [ebp + 0x5c], 0
jmp 0x40dd28
mov dword [ebp + 0x48], 0x10000004
mov dword [ebp + 0x5c], 0
jmp 0x40dd28
push 0x14
push 1
call fcn.00446d4b
add esp, 8
mov dword [ebp + 0x5c], eax
test eax, eax
je 0x40dd6e
mov ecx, dword [ebp + 0x54]
push 0
push ecx
push edi
call fcn.00446f9f
push edi
push 1
lea edx, [esp + 0x34]
push 0xc
push edx
call fcn.00446e88
lea eax, [esp + 0x3c]
push 0xc
push eax
push esi
call fcn.0040fb60
push 8
call fcn.0044620b
add esp, 0x2c
mov dword [esp + 0x10], eax
xor ecx, ecx
cmp eax, ecx
mov dword [esp + 0x194], ecx
je 0x40db6a
mov ecx, eax
call fcn.00416e50
mov esi, eax
mov dword [esp + 0x10], esi
jmp 0x40db70
mov dword [esp + 0x10], ecx
mov esi, ecx
test esi, esi
mov dword [esp + 0x194], 0xffffffff
je 0x40dd99
mov eax, dword [esp + 0x24]
test eax, eax
jbe 0x40dc7d
push 0
push eax
mov ecx, 0x45af98
call fcn.0043b7a0
mov ebx, eax
test ebx, ebx
je 0x40ddc0
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [ebp + 0x42]
xor edx, edx
mov dx, word [ebp + 0x40]
push ecx
mov ecx, dword [ebx + 4]
push edx
push edi
push eax
push ecx
call fcn.0040fff0
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x38]
mov byte [edx + eax], 0
mov ecx, dword [ebx + 4]
push ecx
call fcn.004399b0
mov edx, dword [esp + 0x3c]
inc edx
push edx
call fcn.004466d7
mov ecx, dword [ebp + 0x5c]
add esp, 0x1c
mov dword [ecx + 8], eax
mov edx, dword [ebp + 0x5c]
mov eax, dword [edx + 8]
test eax, eax
je 0x40ddd6
mov ecx, dword [esp + 0x24]
mov esi, dword [ebx + 4]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x5c]
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x10]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp + 0x5c]
mov edx, dword [esp + 0x24]
mov ecx, dword [eax + 8]
mov byte [ecx + edx], 0
mov eax, dword [ebx + 4]
push eax
mov ecx, esi
call fcn.00417380
push ebx
mov ecx, esi
call fcn.004171c0
mov ecx, dword [0x45a844]
push ebx
add ecx, 0x494
call fcn.004171c0
mov edx, dword [ebx + 4]
push edx
call fcn.004180d0
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 0x5c]
push eax
push ecx
call fcn.00417880
add esp, 0xc
mov ecx, 0x45af98
push ebx
call fcn.0043b750
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
mov edx, dword [ebp + 0x50]
push 0
push edx
mov ecx, 0x45af98
call fcn.0043b7a0
mov esi, eax
test esi, esi
je 0x40ddf7
mov edx, dword [ebp + 0x4c]
xor eax, eax
mov ax, word [ebp + 0x42]
xor ecx, ecx
mov cx, word [ebp + 0x40]
push eax
mov eax, dword [esi + 4]
push ecx
push edi
push edx
push eax
call fcn.0040fff0
mov ecx, dword [esi + 4]
push ecx
call fcn.004399b0
mov edx, dword [esi + 4]
mov ecx, dword [esp + 0x28]
add esp, 0x18
push edx
call fcn.00417380
mov ecx, dword [esp + 0x10]
push esi
call fcn.004171c0
mov ecx, dword [esp + 0x10]
call fcn.00416e70
mov eax, dword [esp + 0x10]
push eax
call fcn.00446200
mov ecx, dword [0x45a844]
add esp, 4
add ecx, 0x494
push esi
call fcn.004171c0
mov edx, dword [esi + 4]
push edx
call fcn.004180d0
mov eax, dword [esi + 4]
mov ecx, dword [ebp + 0x5c]
push eax
push ecx
call fcn.00417660
add esp, 0xc
mov ecx, 0x45af98
push esi
call fcn.0043b750
mov edx, dword [ebp + 0x5c]
mov dword [edx + 0x10], ebp
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
add edx, 0x60
cmp eax, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], edx
jb 0x40da9b
push edi
call fcn.00446cce
add esp, 4
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x4c]
push eax
push esi
call dword [0x453064]
test eax, eax
je 0x40de27
jmp 0x40d8bc
mov ecx, dword [0x45a610]
push edi
mov dword [ecx + 0x140], 1
call fcn.00446cce
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [0x453060]
xor eax, eax
jmp 0x40de33
mov eax, dword [0x45a610]
push edi
mov dword [eax + 0x140], 1
call fcn.00446cce
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [0x453060]
xor eax, eax
jmp 0x40de33
push edi
call fcn.00446cce
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [0x453060]
jmp 0x40de0f
push ebx
mov ecx, 0x45af98
call fcn.0043b750
push edi
call fcn.00446cce
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [0x453060]
jmp 0x40de0f
push edi
call fcn.00446cce
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [0x453060]
mov esi, dword [esp + 0x10]
test esi, esi
je 0x40de23
mov ecx, esi
call fcn.00416e70
push esi
call fcn.00446200
add esp, 4
xor eax, eax
jmp 0x40de33
push esi
call dword [0x453060]
mov eax, 1
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x188
ret