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

Disassembly:
push 0xffffffffffffffff
push 0x4924f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
mov ebp, ecx
push esi
mov esi, dword [0x49835c]
push edi
lea edi, [ebp + 0x3a0]
push edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x24], edi
call esi
lea ebx, [ebp + 0x3d0]
mov dword [esp + 0x78], 0
push ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], ebx
call esi
mov eax, dword [ebp + 0x428]
mov byte [esp + 0x78], 1
test eax, eax
je 0x415eec
mov eax, dword [ebp + 0xb0]
test eax, eax
je 0x415cbf
mov eax, dword [ebp + 0x39c]
mov ecx, dword [ebp + 0x3f4]
cmp eax, ecx
jl 0x415eec
mov eax, dword [ebp + 0x1d8]
test eax, eax
je 0x415cdd
mov eax, dword [ebp + 0x3cc]
mov ecx, dword [ebp + 0x3f4]
cmp eax, ecx
jl 0x415eec
mov ecx, dword [ebp + 0x408]
mov eax, dword [ebp + 0x3f8]
mov edx, dword [ebp + 0x40c]
mov dword [esp + 0x30], ecx
add eax, ecx
mov ecx, dword [ebp + 0x3fc]
adc ecx, edx
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [ebp + 0x408], eax
mov dword [ebp + 0x40c], ecx
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0x378]
lea edx, [esp + 0x28]
push 0
push edx
mov ecx, dword [eax]
lea edx, [esp + 0x38]
push edx
lea edx, [esp + 0x1c]
push edx
push eax
mov byte [esp + 0x8c], 2
call dword [ecx + 0x1c]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415f0d
mov edx, dword [ebp + 0x3f4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x30]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc]
mov eax, dword [ebp + 0x42c]
test eax, eax
mov eax, dword [ebp + 0x3f4]
push eax
je 0x415de5
mov ebx, dword [esp + 0x18]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x44]
push eax
push ecx
lea ecx, [ebp + 0x3c0]
call fcn.004154f0
mov eax, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
mov ecx, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x60]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x44]
lea edi, [eax + ebx]
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 eax, dword [ebp + 0x3f4]
lea ecx, [esp + 0x58]
push eax
push ecx
push edx
lea ecx, [ebp + 0x390]
call fcn.004154f0
jmp 0x415e4d
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x64]
push eax
push ecx
lea ecx, [ebp + 0x3c0]
call fcn.004154f0
mov eax, dword [ebp + 0x3f4]
mov ebx, dword [esp + 0x14]
push eax
lea edx, [esp + 0x4c]
lea eax, [esp + 0x54]
push edx
push eax
lea ecx, [ebp + 0x390]
call fcn.004154f0
mov eax, dword [esp + 0x48]
mov esi, dword [esp + 0x50]
mov ecx, eax
mov edi, ebx
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x4c]
mov esi, dword [esp + 0x54]
lea edi, [eax + ebx]
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 eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x34]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x34]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x48]
mov eax, dword [esp + 0x10]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
mov eax, dword [esp + 0x10]
push 0
push eax
mov edx, dword [eax]
call dword [edx + 0x40]
mov eax, dword [esp + 0x10]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov eax, dword [esp + 0x10]
mov edx, dword [ebp + 0x2e0]
lea ecx, [ebp + 0x2e0]
push eax
call dword [edx + 0x44]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x415ec7
mov dword [esp + 0x10], 0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esp + 0x10]
test eax, eax
mov byte [esp + 0x78], 1
je 0x415ed6
mov edx, dword [eax]
push eax
call dword [edx + 8]
mov eax, dword [ebp + 0x428]
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0x18]
test eax, eax
jne 0x415ca1
mov esi, dword [0x498360]
push ebx
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x60]
mov dword fs:[0], ecx
add esp, 0x6c
ret
mov esi, dword [0x498360]
push ebx
call esi
push edi
call esi
mov ecx, dword [esp + 0x70]
pop edi
pop esi
pop ebp
mov eax, 0x80004005
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret