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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x480df0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x49b1b0]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x7c]
mov esi, dword [ebx + 0x78]
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0xb4]
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x419ded
push 1
xor ecx, ecx
lea edx, [esp + 0x1c]
push edx
push ecx
push eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
jne 0x419cc0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x419ded
mov eax, dword [esp + 0x14]
cmp eax, esi
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
jne 0x419cd6
cmp ecx, dword [esp + 0x30]
je 0x419d11
mov ecx, dword [ebx + 0x7c]
mov edx, dword [ebx + 0x78]
mov eax, dword [edi + 0xb4]
push 0
push ecx
push edx
lea esi, [esp + 0x30]
call fcn.004155a0
test al, al
je 0x419e47
mov eax, dword [esp + 0x24]
cmp eax, dword [ebx + 0x78]
jne 0x419e47
mov ecx, dword [esp + 0x28]
cmp ecx, dword [ebx + 0x7c]
jne 0x419e47
xor esi, esi
lea ebx, [edi + 8]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov eax, ebx
mov dword [esp + 0x70], 1
mov dword [esp + 0x10], esi
call fcn.0040b0a0
test eax, eax
ja 0x419e64
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x70]
mov edx, dword [edi]
mov edx, dword [edx + 0x18]
push eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, edi
call edx
mov byte [esp + 0x70], 3
mov ecx, dword [esp + 0x1c]
test ecx, ecx
jne 0x41a02c
mov eax, dword [edi]
mov edx, dword [eax + 0x38]
push ecx
push ecx
push 0x30000003
mov ecx, edi
call edx
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x419daa
or ecx, 0xffffffff
lea eax, [esi + 4]
lock xadd dword [eax], ecx
jne 0x419daa
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
or edx, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], edx
jne 0x419daa
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x419dd6
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.0040cd80
mov eax, dword [esp + 0x44]
push eax
call fcn.00469d48
add esp, 0xc
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
xor eax, eax
push eax
push 0x4851c0
lea esi, [esp + 0x50]
mov dword [esp + 0x68], 7
mov dword [esp + 0x64], eax
mov word [esp + 0x54], ax
call fcn.00401df0
mov dword [esp + 0x70], 0
mov esi, dword [edi]
add esi, 0x34
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi]
push eax
lea eax, [esp + 0x4c]
push eax
push 0x10000002
mov ecx, edi
call edx
cmp dword [esp + 0x60], 8
jb 0x419e47
mov eax, dword [esp + 0x4c]
push eax
call fcn.00469d48
add esp, 4
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, dword [esp + 0x10]
mov dl, byte [edi + 0x100]
test dl, dl
jne 0x419d3d
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x419e85
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 3
cmp esi, eax
jb 0x419e8a
call fcn.00469efa
mov eax, dword [ebx + 4]
mov ecx, dword [eax + esi*8]
lea eax, [eax + esi*8]
mov esi, dword [eax + 4]
test esi, esi
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], esi
je 0x419eae
lea edx, [esi + 4]
mov eax, 1
lock xadd dword [edx], eax
sub esp, 8
test esi, esi
mov byte [esp + 0x78], 2
mov eax, esp
mov dword [eax], ecx
mov dword [esp + 0x1c], esp
mov dword [eax + 4], esi
je 0x419ed1
lea ecx, [esi + 4]
mov edx, 1
lock xadd dword [ecx], edx
lea eax, [esp + 0x40]
push eax
lea ecx, [edi + 0xd4]
push ecx
mov ecx, edi
call fcn.0041ab70
test al, al
je 0x419f3a
test esi, esi
mov byte [esp + 0x70], 1
je 0x419f1b
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x419f1b
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x419f1b
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
mov esi, dword [esp + 0x10]
add esi, 1
mov eax, ebx
mov dword [esp + 0x10], esi
call fcn.0040b0a0
cmp esi, eax
jb 0x419e60
jmp 0x419d3d
mov al, byte [edi + 0x100]
test al, al
je 0x419fcd
cmp dword [edi + 0x104], 0
je 0x419f6e
mov ecx, dword [edi + 0x104]
mov eax, dword [ecx]
movzx edx, byte [edi + 0x100]
mov ecx, dword [edi + 0x104]
add eax, 0x14
mov eax, dword [eax]
push edx
call eax
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x30]
test esi, esi
je 0x419fa5
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x419fa5
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x419fa5
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea esi, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040b490
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x30]
test esi, esi
je 0x41a004
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41a004
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41a004
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
lea esi, [esp + 0x38]
mov dword [esp + 0x70], 0xffffffff
call fcn.0040b490
xor al, al
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ecx]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [esp + 0x1c]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov edx, dword [esp + 0x28]
mov dword [eax + 4], edx
mov eax, dword [esp + 0x28]
test eax, eax
mov dword [esp + 0x1c], esp
je 0x41a05d
add eax, 4
mov ecx, 1
lock xadd dword [eax], ecx
mov edx, dword [esi + 0x84]
mov eax, dword [esi + 0x80]
mov ecx, dword [esi + 0x6c]
push edx
mov edx, dword [esi + 0x68]
push eax
push ecx
push edx
lea eax, [esp + 0x50]
push eax
push edi
call fcn.0041aee0
test al, al
jne 0x41a108
mov cl, byte [edi + 0x100]
test cl, cl
je 0x41a0c0
cmp dword [edi + 0x104], 0
je 0x419d73
mov edx, dword [edi + 0x104]
movzx ecx, byte [edi + 0x100]
mov eax, dword [edx]
mov edx, dword [eax + 0x14]
add eax, 0x14
push ecx
mov ecx, dword [edi + 0x104]
call edx
jmp 0x419d73
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x419daa
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x419daa
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x419daa
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
jmp 0x419daa
mov byte [esp + 0x70], 1
mov esi, dword [esp + 0x20]
test esi, esi
je 0x41a13f
lea ecx, [esi + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x41a13f
mov eax, dword [esi]
mov edx, dword [eax + 4]
mov ecx, esi
call edx
lea eax, [esi + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x41a13f
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov dword [esp + 0x70], 0xffffffff
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x41a16b
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x40]
push ecx
push edx
call fcn.0040cd80
mov eax, dword [esp + 0x44]
push eax
call fcn.00469d48
add esp, 0xc
mov al, 1
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4