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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4c66ce
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
push ebx
push esi
push edi
mov eax, dword [0x521da0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov dword [esp + 0x28], ecx
xor esi, esi
or edi, 0xffffffff
mov dword [esp + 0x94], esi
mov dword [esp + 0x98], esi
mov dword [esp + 0xb0], esi
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x9c], esi
mov dword [esp + 0x90], edi
mov dword [esp + 0x8c], edi
mov dword [esp + 0xa0], edi
mov dword [esp + 0xa4], esi
mov dword [esp + 0xa8], edi
mov dword [esp + 0xac], edi
mov dword [esp + 0xd8], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x48], edi
mov dword [esp + 0x44], edi
mov dword [esp + 0x58], edi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], edi
mov dword [esp + 0x64], edi
lea ecx, [esp + 0x2c]
mov byte [esp + 0xd8], 1
call fcn.0043de60
mov ebx, dword [ebp + 0xc]
mov byte [esp + 0xd8], 2
cmp dword [ebx + 0xd4], esi
jne 0x41d225
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x41d21b
push eax
call fcn.00485196
add esp, 4
mov eax, dword [esp + 0x2c]
push eax
jmp 0x41d3b3
mov ecx, dword [ebx + 0x270]
sub ecx, dword [ebx + 0x26c]
mov eax, dword [ebx + 0x9c]
sar ecx, 2
mov dword [esp + 0x24], eax
cmp eax, ecx
jb 0x41d24b
call fcn.00496353
mov eax, dword [esp + 0x24]
mov edx, dword [ebx + 0x26c]
mov eax, dword [edx + eax*4]
cmp dword [eax + 8], edi
je 0x41d39d
mov ebx, dword [esp + 0x28]
cmp dword [ebx + 0x104], esi
mov dword [esp + 0x14], esi
jle 0x41d39d
add ebx, 0xbc
jmp 0x41d280
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x88]
push eax
mov ecx, ebx
call fcn.00419600
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ebx]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x78], ecx
test edi, edi
je 0x41d2b2
cmp edi, eax
je 0x41d2b7
call fcn.00496353
cmp esi, dword [esp + 0x78]
je 0x41d382
test edi, edi
jne 0x41d351
call fcn.00496353
cmp esi, dword [edi + 0x18]
jne 0x41d2d8
call fcn.00496353
mov ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x54], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x4c], edx
mov edx, dword [esi + 0x14]
mov dword [esp + 0x58], ecx
mov ecx, dword [esi + 0x2c]
mov dword [esp + 0x48], edx
mov edx, dword [esi + 0x28]
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x60], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x5c], edx
mov edx, dword [esi + 0x30]
mov dword [esp + 0x44], eax
mov dword [esp + 0x64], edx
cmp eax, dword [ecx]
je 0x41d3df
lea ecx, [esp + 0x1c]
call fcn.004180c0
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x41], 0
mov dword [esp + 0x18], ecx
jne 0x41d361
jmp 0x41d340
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0xc]
jge 0x41d358
mov dword [esp + 0x18], eax
mov eax, dword [eax]
jmp 0x41d35b
mov edi, dword [edi]
jmp 0x41d2ce
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], 0
je 0x41d340
mov edi, dword [esp + 0x1c]
mov eax, dword [ebx]
test edi, edi
je 0x41d36f
cmp edi, eax
je 0x41d374
call fcn.00496353
mov esi, dword [esp + 0x20]
cmp esi, dword [esp + 0x18]
jne 0x41d2c1
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
inc eax
cmp eax, dword [edx + 0x104]
mov dword [esp + 0x14], eax
jl 0x41d280
xor esi, esi
mov eax, dword [esp + 0x38]
cmp eax, esi
je 0x41d3ae
push eax
call fcn.00485196
add esp, 4
mov ecx, dword [esp + 0x2c]
push ecx
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00485196
add esp, 4
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov esi, dword [ecx + 0x118]
sub esi, dword [ecx + 0x114]
add ecx, 0x108
sar esi, 2
xor edi, edi
mov dword [esp + 0x80], ecx
mov dword [esp + 0x74], esi
mov dword [esp + 0x24], edi
test esi, esi
jle 0x41d597
jmp 0x41d417
mov ecx, dword [esp + 0x80]
push edi
call dword [0x4ce6f8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
push eax
mov dword [esp + 0x80], eax
call fcn.004124b0
mov eax, dword [esp + 0x28]
cmp dword [eax + 0x104], 0
mov dword [esp + 0x14], 0
jle 0x41d58a
lea esp, [esp]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0xc8]
push edx
mov ecx, ebx
call fcn.00419600
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov eax, dword [ebx + 0x18]
mov dword [esp + 0x88], eax
mov eax, dword [ebx]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
test edi, edi
je 0x41d485
cmp edi, eax
je 0x41d48a
call fcn.00496353
cmp esi, dword [esp + 0x88]
je 0x41d569
test edi, edi
jne 0x41d511
call fcn.00496353
xor eax, eax
cmp esi, dword [eax + 0x18]
jne 0x41d4ac
call fcn.00496353
mov ecx, dword [esi + 0x18]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 0x20]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esi + 0x10]
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x24]
mov dword [esp + 0x44], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x58], edx
mov edx, dword [esi + 0x2c]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x48], eax
mov dword [esp + 0x60], edx
mov dword [esp + 0x64], ecx
cmp eax, dword [esp + 0x7c]
jne 0x41d515
push esi
push edi
lea edx, [esp + 0xc4]
push edx
mov ecx, ebx
call fcn.0041ac70
mov edi, dword [eax]
mov esi, dword [eax + 4]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], esi
jmp 0x41d526
mov eax, dword [edi]
jmp 0x41d4a2
lea ecx, [esp + 0x1c]
call fcn.004180c0
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x1c]
mov ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 4]
cmp byte [eax + 0x41], 0
mov dword [esp + 0x18], ecx
jne 0x41d550
mov ecx, dword [esp + 0x14]
cmp ecx, dword [eax + 0xc]
jge 0x41d547
mov dword [esp + 0x18], eax
mov eax, dword [eax]
jmp 0x41d54a
mov eax, dword [eax + 8]
cmp byte [eax + 0x41], 0
je 0x41d536
mov eax, dword [ebx]
test edi, edi
je 0x41d55a
cmp edi, eax
je 0x41d55f
call fcn.00496353
cmp esi, dword [esp + 0x18]
jne 0x41d497
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
inc eax
cmp eax, dword [edx + 0x104]
mov dword [esp + 0x14], eax
jl 0x41d450
mov edi, dword [esp + 0x24]
mov esi, dword [esp + 0x74]
inc edi
cmp edi, esi
mov dword [esp + 0x24], edi
jl 0x41d410
mov eax, dword [esp + 0x38]
test eax, eax
je 0x41d5a8
push eax
call fcn.00485196
add esp, 4
xor eax, eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2c]
push eax
jmp 0x41d3bf