Function at 0x41afbb
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.00418f73
push dword [esp + 0x244]
mov ecx, ebx
call fcn.00419de8
mov eax, dword [ebx + 0x1c]
lea ebp, [ebx + 0x18]
xor edx, edx
mov dword [esp + 0x14], ebp
add eax, eax
je 0x41b019
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 0x41affa
jmp 0x41b01d
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.004268c0
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.004120d8
mov dword [esp + 0x30], eax
test eax, eax
js 0x41b3bc
add edi, eax
mov dword [esp + 0x28], edi
je 0x41b3bc
test eax, eax
jle 0x41b09f
cmp edi, 0x400
jl 0x41b3b1
mov edx, dword [esp + 0x1c]
cmp edx, edi
jge 0x41b3b1
mov eax, dword [ebx + 0x1c]
xor ecx, ecx
and dword [esp + 0x24], ecx
mov dword [esp + 0x20], ecx
add eax, eax
je 0x41b1dd
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 0x41b0e7
mov dword [esi + 0x2ccc], edi
xor edx, edx
jmp 0x41b11e
mov eax, dword [ebx + 0x20]
mov ecx, ebp
add eax, edx
push eax
call fcn.0040f0c6
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 0x41b1dd
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 0x41b170
lea eax, [esi + 0x18]
mov byte [esi + 0x14], 1
push eax
push ebp
mov ecx, ebx
call fcn.004197e8
test al, al
je 0x41b1d8
cmp byte [esi + 0x29], 0
jne 0x41b165
cmp byte [ebx + 0xb06a], 0
je 0x41b1d8
mov ecx, dword [esp + 0x20]
mov byte [ebx + 0xb06a], 1
cmp byte [esp + 0x13], 0
jne 0x41b186
cmp dword [esi + 0x18], 0x20000
jg 0x41b186
inc dword [esp + 0x24]
jmp 0x41b192
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 0x41b1bb
cmp byte [esi + 0x28], 0
jne 0x41b1dd
cmp eax, 0x400
jl 0x41b1dd
mov eax, dword [ebx + 0x1c]
add eax, eax
cmp ecx, eax
jae 0x41b1dd
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
jmp 0x41b0c6
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 0x41b1ef
inc esi
xor ebp, ebp
test ecx, ecx
je 0x41b264
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 0x41b226
mov eax, esi
cmp dword [esp + 0x20], 1
mov dword [ecx + 4], eax
jne 0x41b23a
push edx
mov ecx, ebx
call fcn.0041b447
jmp 0x41b248
push ecx
mov ecx, dword [ebx + 0x14]
push 0x41ba70
call fcn.00417043
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 0x41b20d
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x41b3ad
mov ecx, dword [ebx + 0x14]
call fcn.00417290
xor esi, esi
test ebp, ebp
je 0x41b2f2
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 0x41b2ae
push ebp
mov ecx, ebx
call fcn.004191ff
test al, al
je 0x41b3bc
cmp byte [ebp + 0x2cd1], 0
je 0x41b2be
push ebp
mov ecx, ebx
call fcn.0041ba9f
test al, al
je 0x41b3bc
cmp byte [ebp + 0x2cd0], 0
jne 0x41b3bc
cmp byte [ebp + 0x2cd3], 0
jne 0x41b322
cmp byte [ebp + 0x28], 0
jne 0x41b3bc
mov eax, dword [esp + 0x18]
inc esi
add eax, 0x2ce4
mov dword [esp + 0x18], eax
cmp esi, dword [esp + 0x20]
jb 0x41b284
cmp byte [esp + 0x12], 0
jne 0x41b3bc
mov edx, dword [esp + 0x1c]
mov esi, edi
sub esi, edx
cmp esi, 0x400
jl 0x41b425
mov ebp, dword [esp + 0x14]
cmp edx, edi
jge 0x41b05f
jmp 0x41b0ab
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x20]
sub eax, ecx
add eax, dword [ebp + 4]
cmp edi, eax
jle 0x41b3bc
sub edi, eax
add eax, ecx
push edi
push eax
push ecx
mov dword [esp + 0x34], edi
call fcn.004268c0
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 0x41b3a7
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.004268c0
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 0x41b05f
mov eax, dword [ebx + 0x78]
mov ecx, dword [ebx + 0xb0d0]
cmp eax, ecx
jb 0x41b3cb
sub eax, ecx
mov ecx, ebx
mov dword [ebx + 0x78], eax
call fcn.0041a055
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.004268c0
mov ecx, dword [esp + 0x248]
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004253a4
add esp, 0x230
ret 4
test esi, esi
js 0x41b3bc
jle 0x41b43c
mov ecx, dword [ebx + 0x20]
push esi
lea eax, [ecx + edx]
push eax
push ecx
call fcn.004268c0
add esp, 0xc
mov ebp, dword [esp + 0x14]
mov edi, esi
jmp 0x41b059