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

Disassembly:
sub esp, 0x2c
lea eax, [esp + 4]
lea ecx, [esp + 8]
lea edx, [esp + 0xc]
push ebx
push ebp
push esi
push edi
push eax
push ecx
lea eax, [esp + 0x28]
push edx
lea ecx, [esp + 0x30]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x40]
push edx
lea ecx, [esp + 0x48]
push eax
lea edx, [esp + 0x50]
push ecx
push edx
push 0
call fcn.0044c430
mov esi, dword [esp + 0x68]
add esp, 0x28
mov eax, dword [esi + 0x3650]
test eax, eax
je 0x41fbee
mov edx, dword [esi + 0x3654]
test edx, edx
mov dword [esp + 0x38], edx
je 0x41fbee
mov ecx, dword [esi + 0x3658]
test ecx, ecx
je 0x41fbee
cmp dword [0x5362ec], 1
jne 0x41fc39
mov eax, dword [esi + 0x3648]
test eax, eax
mov eax, dword [esp + 0x14]
push eax
je 0x41fbfb
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x2c]
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x3c]
push eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x54]
shl ecx, 0xb
push eax
push ecx
mov ecx, dword [esp + 0x6c]
push 0
push 0
push edx
push ecx
call fcn.00488120
add esp, 0x38
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x38]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x48]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esi + 0x3778]
shl ecx, 0xb
push eax
push ecx
push 0
push 0
push edx
mov edx, dword [esp + 0x78]
push edx
jmp 0x41fbe6
mov ebx, dword [esp + 0x48]
mov eax, ecx
sub eax, ebx
mov dword [esp + 0x10], ecx
shl eax, 0xb
add eax, edx
cmp eax, edx
jb 0x41fc90
mov ebp, ebx
shl ecx, 0xb
shl ebp, 0xb
add ecx, eax
mov edi, ecx
mov dword [esp + 0x48], edi
mov ecx, ebp
mov esi, eax
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
jne 0x41fc88
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x38]
sub edi, ebx
sub eax, ebp
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0x48]
sub edi, ebp
cmp eax, edx
mov dword [esp + 0x48], edi
jae 0x41fc5e
jmp 0x41fc8c
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x40]
mov eax, dword [esp + 0x10]
mov edi, edx
xor ebp, ebp
mov dword [esp + 0x48], edi
test eax, eax
jle 0x41fbee
jmp 0x41fcaa
mov esi, dword [esp + 0x40]
mov eax, dword [esi + 0x3788]
test eax, eax
je 0x41fcdb
xor esi, esi
test ebx, ebx
jle 0x41fcdb
mov ecx, dword [esp + 0x40]
lea eax, [esi + ebp]
push edi
push eax
push ecx
call fcn.0042aa20
add esp, 0xc
inc esi
add edi, 0x800
cmp esi, ebx
jl 0x41fcba
mov edi, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, ebx
shl esi, 0xb
push 0x800
push esi
push edi
push ebp
push edx
call fcn.004982e0
add esp, 0x14
test eax, eax
je 0x41fd1c
mov eax, dword [esp + 0x10]
add edi, esi
sub eax, ebx
add ebp, ebx
test eax, eax
mov dword [esp + 0x48], edi
mov dword [esp + 0x10], eax
jg 0x41fca6
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x2c
ret
push ebp
push 0x12b
push str.Error_writing_data.
push 0x14a
call fcn.004a6ea0
add esp, 8
push eax
push str._s___d__08x_
push 1
call fcn.004a3640
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret