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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x4e3a20]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, edx
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x30], edx
xor edx, edx
xor esi, esi
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0xc], esi
test eax, eax
je 0x41d089
cmp byte [eax], dl
jne 0x41d08e
mov esi, 1
test eax, eax
je 0x41d0c4
mov ecx, str.:memory:
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d0b7
test dl, dl
je 0x41d0b3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d0b7
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d097
xor eax, eax
jmp 0x41d0bc
sbb eax, eax
or eax, 1
test eax, eax
je 0x41d0dc
mov ecx, dword [esp + 0x14]
test esi, esi
je 0x41d0ce
cmp byte [ecx + 0x3f], 2
je 0x41d0dc
mov ebx, dword [ebp + 0x14]
test bl, bl
js 0x41d0df
mov eax, dword [ebp + 0x10]
xor ecx, ecx
jmp 0x41d0ea
mov ebx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov ecx, 1
or eax, 2
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], ecx
test ebx, 0x100
je 0x41d111
test ecx, ecx
jne 0x41d102
test esi, esi
je 0x41d111
and ebx, 0xfffffeff
or ebx, 0x200
mov dword [ebp + 0x14], ebx
push 0x2c
call fcn.0040a330
mov edi, eax
add esp, 4
test edi, edi
je 0x41d18d
push 0x2c
push 0
push edi
call fcn.004a9520
mov eax, dword [esp + 0x20]
add esp, 0xc
mov byte [edi + 8], 0
mov dword [edi], eax
mov dword [edi + 0x1c], edi
mov dword [edi + 0x20], 1
test esi, esi
jne 0x41d322
cmp dword [esp + 0x20], esi
je 0x41d159
test bl, 0x40
je 0x41d322
test ebx, 0x20000
je 0x41d322
mov esi, dword [esp + 0x24]
mov esi, dword [esi + 8]
inc esi
push esi
call fcn.0040a330
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
mov byte [edi + 9], 1
test ebx, ebx
jne 0x41d1a7
push edi
call fcn.0040a630
add esp, 4
mov eax, 7
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret
cmp dword [esp + 0x20], 0
je 0x41d1db
mov ecx, dword [esp + 0x18]
call fcn.0040cbf0
inc eax
push eax
push ecx
push ebx
call fcn.004a5f50
add esp, 0xc
cmp dword [0x4e5c0c], 0
jne 0x41d224
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x30], edx
jmp 0x41d271
mov eax, dword [esp + 0x24]
push ebx
push esi
push dword [esp + 0x20]
mov byte [ebx], 0
push eax
mov eax, dword [eax + 0x24]
call eax
mov esi, eax
add esp, 0x10
mov dword [esp + 0xc], eax
test esi, esi
je 0x41d1c3
push ebx
call fcn.0040a630
add esp, 4
push edi
call fcn.0040a630
add esp, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret
push 4
call dword [0x4e5c54]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41d241
push eax
call dword [0x4e5c5c]
add esp, 4
cmp dword [0x4e5c0c], 0
jne 0x41d254
mov dword [esp + 0x30], 0
jmp 0x41d271
push 2
call dword [0x4e5c54]
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x41d271
push eax
call dword [0x4e5c5c]
add esp, 4
mov esi, dword [0x4e75fc]
test esi, esi
je 0x41d2fc
nop
mov ebx, dword [esi]
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebx + 0xa8]
lea esp, [esp]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x41d2b0
test dl, dl
je 0x41d2ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x41d2b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x41d290
xor eax, eax
jmp 0x41d2b5
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41d2c1
mov eax, dword [esp + 0x24]
cmp dword [ebx], eax
je 0x41d2ca
mov esi, dword [esi + 0x44]
test esi, esi
jne 0x41d280
jmp 0x41d2f8
mov eax, dword [esp + 0x14]
mov edx, dword [eax + 0x14]
dec edx
js 0x41d2f2
mov eax, dword [eax + 0x10]
mov ecx, edx
shl ecx, 4
add eax, 4
add ecx, eax
mov eax, dword [ecx]
test eax, eax
je 0x41d2ec
cmp dword [eax + 4], esi
je 0x41d34d
sub ecx, 0x10
dec edx
jns 0x41d2e1
mov dword [edi + 4], esi
inc dword [esi + 0x40]
mov ebx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41d30e
push eax
call dword [0x4e5c64]
add esp, 4
push ebx
call fcn.0040a630
add esp, 4
test esi, esi
jne 0x41d551
mov ebx, dword [ebp + 0x14]
push 0x54
call fcn.0040a330
mov esi, eax
add esp, 4
test esi, esi
je 0x41d343
push 0x54
push 0
push esi
call fcn.004a9520
add esp, 0xc
test esi, esi
jne 0x41d3a0
mov ebx, 7
jmp 0x41d649
mov eax, dword [esp + 0x30]
test eax, eax
je 0x41d35f
push eax
call dword [0x4e5c64]
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d371
push eax
call dword [0x4e5c64]
add esp, 4
push dword [esp + 0x2c]
call fcn.0040a630
add esp, 4
push edi
call fcn.0040a630
add esp, 4
mov eax, 0x13
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret
push ecx
push ebx
mov ebx, dword [esp + 0x30]
push ebx
push ecx
push dword [esp + 0x28]
mov ecx, dword [esp + 0x38]
mov edx, esi
call fcn.00416d30
add esp, 0x14
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41d645
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push dword [eax + 0x2c]
push dword [eax + 0x28]
call fcn.00416160
mov ecx, dword [esi]
lea eax, [esp + 0x40]
push eax
call fcn.004163c0
add esp, 0xc
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41d645
mov eax, dword [esp + 0x14]
mov dword [esi + 4], eax
mov eax, dword [esi]
mov byte [esi + 0x10], bl
mov ecx, dword [eax + 0x3c]
lea edx, [eax + 0xb0]
mov dword [eax + 0xb4], esi
mov dword [edx], 0x41cff0
cmp dword [ecx], 0
je 0x41d426
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 0x28]
push 0xf
push ecx
call eax
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [esi]
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
cmp byte [eax + 0xe], 0
je 0x41d444
or word [esi + 0x16], 1
movzx ecx, byte [esp + 0x49]
movzx eax, byte [esp + 0x48]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [esi + 0x20], ecx
cmp ecx, 0x200
jb 0x41d4a5
cmp ecx, 0x10000
ja 0x41d4a5
lea eax, [ecx - 1]
test ecx, eax
jne 0x41d4a5
mov al, byte [esp + 0x4c]
or word [esi + 0x16], 2
lea ecx, [esp + 0x6c]
mov byte [esp + 0x13], al
call fcn.0040dc20
test eax, eax
setne al
lea ecx, [esp + 0x78]
mov byte [esi + 0x11], al
call fcn.0040dc20
test eax, eax
setne al
mov byte [esi + 0x12], al
mov al, byte [esp + 0x13]
jmp 0x41d4c2
cmp dword [esp + 0x18], 0
mov dword [esi + 0x20], 0
je 0x41d4c0
cmp dword [esp + 0x20], 0
jne 0x41d4c0
mov word [esi + 0x11], 0
xor al, al
mov ecx, dword [esi]
movzx eax, al
push eax
lea edx, [esi + 0x20]
mov dword [esp + 0x2c], eax
call fcn.00416250
add esp, 4
mov dword [esp + 0xc], eax
test eax, eax
jne 0x41d645
mov eax, dword [esi + 0x20]
sub eax, dword [esp + 0x28]
mov dword [esi + 0x24], eax
cmp byte [edi + 9], 0
je 0x41d5db
mov ecx, 2
mov dword [esi + 0x40], 1
call fcn.00409cc0
cmp dword [0x4e5c0c], 0
mov ebx, eax
je 0x41d531
xor ecx, ecx
call fcn.00409cc0
mov dword [esi + 0x38], eax
test eax, eax
jne 0x41d531
lea ebx, [eax + 7]
mov eax, dword [esp + 0x14]
mov byte [eax + 0x40], 0
jmp 0x41d649
push ebx
call fcn.00409d00
mov eax, dword [0x4e75fc]
add esp, 4
mov dword [esi + 0x44], eax
push ebx
mov dword [0x4e75fc], esi
call fcn.00409d40
add esp, 4
cmp byte [edi + 9], 0
je 0x41d5db
mov eax, dword [esp + 0x14]
xor edx, edx
mov ebx, dword [eax + 0x14]
test ebx, ebx
jle 0x41d5db
mov eax, dword [eax + 0x10]
add eax, 4
mov edi, edi
mov ecx, dword [eax]
test ecx, ecx
je 0x41d57c
cmp byte [ecx + 9], 0
jne 0x41d586
inc edx
add eax, 0x10
cmp edx, ebx
jl 0x41d570
jmp 0x41d5db
cmp dword [ecx + 0x18], 0
lea eax, [ecx + 0x18]
je 0x41d59b
nop
mov ecx, dword [eax]
cmp dword [ecx + 0x18], 0
lea eax, [ecx + 0x18]
jne 0x41d590
mov edx, dword [edi + 4]
cmp edx, dword [ecx + 4]
jae 0x41d5b2
mov dword [edi + 0x14], ecx
mov dword [edi + 0x18], 0
mov dword [ecx + 0x18], edi
jmp 0x41d5db
cmp dword [ecx + 0x14], 0
je 0x41d5c8
mov eax, dword [ecx + 0x14]
cmp dword [eax + 4], edx
jae 0x41d5c8
mov ecx, eax
cmp dword [ecx + 0x14], 0
jne 0x41d5b8
mov eax, dword [ecx + 0x14]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ecx
test eax, eax
je 0x41d5d8
mov dword [eax + 0x18], edi
mov dword [ecx + 0x14], edi
mov eax, dword [esp + 0x34]
mov ebx, dword [esp + 0xc]
mov dword [eax], edi
test ebx, ebx
jne 0x41d649
mov esi, dword [edi + 4]
mov ecx, edi
call fcn.0041b720
cmp byte [edi + 9], bl
je 0x41d615
dec dword [edi + 0xc]
jne 0x41d615
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x41d611
push eax
call dword [0x4e5c64]
add esp, 4
mov byte [edi + 0xa], 0
cmp dword [esi + 0x30], 0
jne 0x41d674
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov eax, dword [eax + 0xcc]
mov dword [eax + 0x10], 0x7d0
mov eax, dword [eax + 0x28]
test eax, eax
je 0x41d674
push 0x7d0
push eax
call dword [0x4e5c84]
add esp, 8
jmp 0x41d674
mov ebx, dword [esp + 0xc]
test esi, esi
je 0x41d658
mov ecx, dword [esi]
test ecx, ecx
je 0x41d658
call fcn.004166b0
push esi
call fcn.0040a630
add esp, 4
push edi
call fcn.0040a630
mov eax, dword [esp + 0x38]
add esp, 4
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x41d686
push eax
call dword [0x4e5c64]
add esp, 4
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004a2eda
mov esp, ebp
pop ebp
ret