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

Disassembly:
sub esp, 0x230
mov eax, dword [0x448780]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.00418fa3
push dword [esp + 0x244]
mov ecx, ebx
call fcn.00419e18
mov eax, dword [ebx + 0x1c]
lea ebp, [ebx + 0x18]
xor edx, edx
mov dword [esp + 0x14], ebp
add eax, eax
je 0x41b049
xor ecx, ecx
mov eax, dword [ebp]
lea ecx, [ecx + 0x2ce4]
inc edx
mov byte [eax + ecx - 0x13], 0
mov byte [eax + ecx - 0x11], 0
mov eax, dword [ebx + 0x1c]
add eax, eax
cmp edx, eax
jb 0x41b02a
jmp 0x41b04d
mov dword [esp + 0x14], ebp
mov edi, dword [ebp]
lea eax, [ebx + 0xa4]
push 5
pop ecx
push 0x2c9c
push eax
lea esi, [ebx + 0x90]
add edi, 0x18
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp]
add eax, 0x30
push eax
call fcn.004268f0
xor eax, eax
add esp, 0xc
mov dword [esp + 0x2c], eax
xor edi, edi
mov byte [esp + 0x13], al
mov byte [esp + 0x12], al
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebx]
mov eax, 0x400000
sub eax, edi
and eax, 0xfffffff0
push eax
mov eax, dword [ebx + 0x20]
add eax, edi
push eax
call fcn.004120c8
mov dword [esp + 0x30], eax
test eax, eax
js 0x41b3ec
add edi, eax
mov dword [esp + 0x28], edi
je 0x41b3ec
test eax, eax
jle 0x41b0cf
cmp edi, 0x400
jl 0x41b3e1
mov edx, dword [esp + 0x1c]
cmp edx, edi
jge 0x41b3e1
mov eax, dword [ebx + 0x1c]
xor ecx, ecx
and dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
add eax, eax
je 0x41b20d
xor eax, eax
mov dword [esp + 0x18], eax
mov esi, dword [ebp]
add esi, eax
mov dword [esp + 0x2c], ecx
cmp byte [esi + 0x2cd3], 0
lea ebp, [esi + 4]
mov dword [esi], ebx
je 0x41b117
mov dword [esi + 0x2ccc], edi
xor edx, edx
jmp 0x41b14e
mov eax, dword [ebx + 0x20]
mov ecx, ebp
add eax, edx
push eax
call fcn.0040f0b6
xor edx, edx
mov eax, edi
sub eax, dword [esp + 0x1c]
mov dword [ebp + 4], edx
mov dword [ebp], edx
mov dword [esi + 0x2ccc], eax
je 0x41b20d
mov ecx, dword [esp + 0x20]
mov byte [esi + 0x2cd0], dl
mov byte [esi + 0x14], dl
mov byte [esi + 0x2c], dl
cmp dword [esp + 0x30], 0
mov byte [esi + 0x2cd3], dl
sete al
mov dword [esi + 0x2ce0], ecx
cmp byte [esi + 0x14], 0
mov byte [esi + 0x2cd2], al
jne 0x41b1a0
lea eax, [esi + 0x18]
mov byte [esi + 0x14], 1
push eax
push ebp
mov ecx, ebx
call fcn.00419818
test al, al
je 0x41b208
cmp byte [esi + 0x29], 0
jne 0x41b195
cmp byte [ebx + 0xb06a], 0
je 0x41b208
mov ecx, dword [esp + 0x20]
mov byte [ebx + 0xb06a], 1
cmp byte [esp + 0x13], 0
jne 0x41b1b6
cmp dword [esi + 0x18], 0x20000
jg 0x41b1b6
inc dword [esp + 0x24]
jmp 0x41b1c2
mov byte [esi + 0x2cd1], 1
mov byte [esp + 0x13], 1
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x18]
mov edx, dword [esp + 0x1c]
add dword [esp + 0x18], 0x2ce4
add edx, eax
inc ecx
mov dword [esp + 0x1c], edx
mov eax, edi
mov dword [esp + 0x20], ecx
sub eax, edx
js 0x41b1eb
cmp byte [esi + 0x28], 0
jne 0x41b20d
cmp eax, 0x400
jl 0x41b20d
mov eax, dword [ebx + 0x1c]
add eax, eax
cmp ecx, eax
jae 0x41b20d
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x41b0f6
mov byte [esp + 0x12], 1
mov ecx, dword [esp + 0x24]
xor edx, edx
mov eax, ecx
div dword [ebx + 0x1c]
mov esi, eax
test edx, edx
je 0x41b21f
inc esi
xor ebp, ebp
test ecx, ecx
je 0x41b294
mov edi, dword [esp + 0x14]
xor edx, edx
imul eax, esi, 0x2ce4
mov dword [esp + 0x18], edx
mov dword [esp + 0x34], eax
lea eax, [esp + 0x3c]
add edx, dword [edi]
mov ecx, eax
add eax, 8
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x24]
sub eax, ebp
mov dword [ecx], edx
cmp esi, eax
jae 0x41b256
mov eax, esi
cmp dword [esp + 0x20], 1
mov dword [ecx + 4], eax
jne 0x41b26a
push edx
mov ecx, ebx
call fcn.0041b477
jmp 0x41b278
push ecx
mov ecx, dword [ebx + 0x14]
push 0x41baa0
call fcn.00417075
mov edx, dword [esp + 0x18]
add ebp, esi
add edx, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x18], edx
cmp ebp, dword [esp + 0x24]
jb 0x41b23d
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41b3dd
mov ecx, dword [ebx + 0x14]
call fcn.004172c0
xor esi, esi
test ebp, ebp
je 0x41b322
xor eax, eax
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x14]
mov ebp, dword [ecx]
add ebp, eax
cmp byte [ebp + 0x2cd1], 0
jne 0x41b2de
push ebp
mov ecx, ebx
call fcn.0041922f
test al, al
je 0x41b3ec
cmp byte [ebp + 0x2cd1], 0
je 0x41b2ee
push ebp
mov ecx, ebx
call fcn.0041bacf
test al, al
je 0x41b3ec
cmp byte [ebp + 0x2cd0], 0
jne 0x41b3ec
cmp byte [ebp + 0x2cd3], 0
jne 0x41b352
cmp byte [ebp + 0x28], 0
jne 0x41b3ec
mov eax, dword [esp + 0x18]
inc esi
add eax, 0x2ce4
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x20]
jb 0x41b2b4
cmp byte [esp + 0x12], 0
jne 0x41b3ec
mov edx, dword [esp + 0x1c]
mov esi, edi
sub esi, edx
cmp esi, 0x400
jl 0x41b455
mov ebp, dword [esp + 0x14]
cmp edx, edi
jge 0x41b08f
jmp 0x41b0db
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x20]
sub eax, ecx
add eax, dword [ebp + 4]
cmp edi, eax
jle 0x41b3ec
sub edi, eax
add eax, ecx
push edi
push eax
push ecx
mov dword [esp + 0x34], edi
call fcn.004268f0
mov eax, dword [ebp + 0x20]
add esp, 0xc
sub eax, dword [ebp + 4]
add dword [ebp + 0x18], eax
and dword [ebp + 0x24], 0
and dword [ebp + 0x20], 0
mov eax, dword [ebx + 0x20]
and dword [ebp + 4], 0
mov dword [ebp + 0x10], eax
test esi, esi
je 0x41b3d7
mov eax, dword [esp + 0x14]
push 0x2ce4
push ebp
mov eax, dword [eax]
push eax
mov esi, dword [eax + 0x2cd4]
mov edi, dword [eax + 0x2cdc]
call fcn.004268f0
mov ecx, dword [esp + 0x20]
add esp, 0xc
mov eax, dword [ecx]
mov dword [eax + 0x2cd4], esi
mov eax, dword [ecx]
mov dword [eax + 0x2cdc], edi
mov edi, dword [esp + 0x28]
mov byte [ebp + 0x2cd3], 0
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov ebp, dword [esp + 0x14]
cmp byte [esp + 0x12], 0
je 0x41b08f
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0xb0d0]
cmp eax, ecx
jb 0x41b3fb
sub eax, ecx
mov ecx, ebx
mov dword [ebx + 0x78], eax
call fcn.0041a085
imul edx, dword [esp + 0x2c], 0x2ce4
lea edi, [ebx + 0x90]
mov eax, dword [ebx + 0x18]
push 5
pop ecx
push 0x2c9c
lea esi, [edx + 0x18]
add edx, 0x30
add esi, eax
add eax, edx
push eax
lea eax, [ebx + 0xa4]
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004268f0
mov ecx, dword [esp + 0x248]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253d4
add esp, 0x230
ret 4
test esi, esi
js 0x41b3ec
jle 0x41b46c
mov ecx, dword [ebx + 0x20]
push esi
lea eax, [ecx + edx]
push eax
push ecx
call fcn.004268f0
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov edi, esi
jmp 0x41b089