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

Disassembly:
sub esp, 0x34
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [esp + 0x58]
mov esi, 1
shl esi, cl
push edi
push 0x18
mov dword [esp + 0x3c], esi
call fcn.0043878d
mov edi, eax
xor eax, eax
add esp, 4
cmp edi, eax
je 0x41fc21
mov ecx, dword [esp + 0x54]
mov dword [edi + 4], eax
mov eax, dword [esp + 0x50]
mov dword [edi + 8], eax
add eax, 7
sar eax, 3
mov dword [edi + 0x10], eax
imul eax, ecx
push eax
mov dword [edi], 0x44f514
mov dword [edi + 0xc], ecx
call fcn.004375c0
mov ebp, edi
add esp, 4
mov dword [edi + 0x14], eax
mov dword [esp + 0x50], ebp
jmp 0x41fc27
mov dword [esp + 0x50], eax
mov ebp, eax
mov ecx, dword [ebp + 0x10]
imul ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x70]
mov edi, dword [ebp + 0x14]
mov edx, ecx
shr ecx, 2
test eax, eax
je 0x41fc43
or eax, 0xffffffff
jmp 0x41fc45
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x48]
test edi, edi
je 0x41fc6d
mov eax, dword [esp + 0x8c]
push eax
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.0041f5e0
jmp 0x41fc7e
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x14]
push eax
call fcn.0041c450
mov ecx, dword [esp + 0x10]
imul ecx, esi
neg ecx
xor eax, eax
mov dword [esp + 0x10], ecx
cmp dword [esp + 0x58], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
ja 0x41fcb0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x34
ret 0x68
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
nop
test edi, edi
je 0x41fccb
mov edx, dword [esp + 0x8c]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x18]
push eax
call fcn.0041f5e0
jmp 0x41fcdc
mov ecx, dword [ebx + 0x54]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x18]
push edx
call fcn.0041c450
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
imul eax, esi
add ecx, eax
test edi, edi
mov dword [esp + 0x10], ecx
je 0x41fd08
mov ecx, dword [esp + 0x84]
push ecx
mov ecx, dword [ebx + 0x7c]
lea edx, [esp + 0x1c]
push edx
call fcn.0041f5e0
jmp 0x41fd19
mov eax, dword [ebx + 0x5c]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041c450
mov ebp, dword [esp + 0x2c]
add ebp, dword [esp + 0x18]
mov dword [esp + 0x2c], ebp
cmp esi, 1
mov dword [esp + 0x70], ebp
jne 0x41fd38
mov dword [esp + 0x14], 0
jmp 0x41fd60
test edi, edi
je 0x41fd4f
mov edx, dword [esp + 0x5c]
mov ecx, dword [ebx + 0x7c]
push edx
call fcn.0041c650
mov dword [esp + 0x14], eax
jmp 0x41fd60
mov eax, dword [ebx + 0x58]
push eax
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041c450
mov esi, dword [esp + 0x48]
test esi, esi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
lea edi, [eax + edx]
je 0x41fda2
mov eax, dword [esp + 0x64]
test eax, eax
je 0x41fd93
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.0041f5e0
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x54], edx
jmp 0x41fdb7
mov eax, dword [esp + 0x68]
mov ecx, dword [ebx + 0x7c]
push eax
call fcn.0041c650
jmp 0x41fdb3
mov ecx, dword [ebx + 0x78]
mov edx, dword [esp + 0x68]
push ecx
mov ecx, dword [ebx + 0x38]
push edx
call fcn.0041c400
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x41feaa
test esi, esi
je 0x41fe90
mov esi, dword [ebx + 0x7c]
mov eax, dword [esi + 8]
test eax, eax
jne 0x41fde6
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov dword [esi + 4], eax
mov dword [esi + 8], 8
mov eax, dword [esi + 8]
dec eax
mov dword [esi + 8], eax
mov ecx, eax
mov eax, dword [esi + 4]
mov esi, dword [esp + 0x48]
shr eax, cl
and eax, 1
mov dword [esp + 0x1c], eax
test eax, eax
je 0x41feb2
test esi, esi
je 0x41feed
mov eax, dword [esp + 0x90]
push eax
lea ecx, [esp + 0x28]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.0041f5e0
mov edx, dword [esp + 0x94]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x24]
push eax
call fcn.0041f5e0
mov ecx, dword [esp + 0x98]
push ecx
mov ecx, dword [ebx + 0x7c]
lea edx, [esp + 0x34]
push edx
call fcn.0041f5e0
mov eax, dword [esp + 0x9c]
push eax
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.0041f5e0
mov edx, dword [esp + 0xa0]
mov ecx, dword [ebx + 0x7c]
push edx
lea eax, [esp + 0x44]
push eax
call fcn.0041f5e0
mov eax, dword [ebx + 0x7c]
xor ecx, ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041c1f0
jmp 0x41ff31
mov ecx, dword [ebx + 0x74]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x20]
push edx
call fcn.0041c450
mov eax, dword [esp + 0x1c]
jmp 0x41fdff
mov dword [esp + 0x1c], 0
mov edx, dword [esp + 0x6c]
mov eax, dword [esp + 0x54]
mov esi, dword [edx + eax*4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x78]
dec eax
dec ecx
test edx, edx
mov edx, dword [esp + 0x7c]
mov dword [esp + 0x70], eax
mov dword [esp + 0x54], ecx
je 0x41ffda
cmp edx, 3
ja case.default.0x41fee6
jmp dword [edx*4 + 0x420094]
mov ecx, dword [ebx + 0x6c]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x28]
push edx
call fcn.0041c450
mov eax, dword [ebx + 0x70]
push eax
lea ecx, [esp + 0x24]
push ecx
mov ecx, dword [ebx + 0x38]
call fcn.0041c450
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
call fcn.0041c450
mov ecx, dword [ebx + 0x68]
push ecx
mov ecx, dword [ebx + 0x38]
lea edx, [esp + 0x38]
push edx
call fcn.0041c450
mov eax, dword [esp + 0x24]
test eax, eax
jge 0x41ff3a
dec eax
cdq
sub eax, edx
mov edx, dword [esp + 0x30]
sar eax, 1
add eax, edx
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x20]
test eax, eax
jge 0x41ff52
dec eax
mov ebp, dword [esp + 0xac]
mov ecx, dword [esp + 0x34]
cdq
push ebp
mov ebp, dword [esp + 0xac]
sub eax, edx
mov edx, dword [esp + 0x58]
push ebp
sar eax, 1
add eax, ecx
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0xb8]
push 0
push ecx
mov ecx, dword [esp + 0x40]
add edx, eax
add esi, ecx
push edx
push esi
mov ecx, ebx
call fcn.0041e1c0
mov ebp, dword [esp + 0x70]
mov esi, eax
jmp 0x41febd
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x41ffc6
mov ecx, dword [esp + 0x74]
push ecx
sub edi, eax
jmp 0x41ffc6
sub edi, eax
mov edx, dword [esp + 0x74]
push edx
mov ecx, dword [esp + 0x54]
push ebp
push edi
push esi
call fcn.0041ce60
mov ecx, dword [esp + 0x54]
add ebp, ecx
jmp 0x41ffff
cmp edx, 3
ja case.default.0x41ffdf
jmp dword [edx*4 + 0x4200a4]
sub edi, ecx
mov eax, dword [esp + 0x74]
push eax
mov ecx, dword [esp + 0x54]
push edi
push ebp
push esi
call fcn.0041ce60
mov eax, dword [esp + 0x70]
add ebp, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x42000f
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x48]
inc ecx
test eax, eax
mov dword [esp + 0x28], ecx
je 0x420047
mov eax, dword [esp + 0x88]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [ebx + 0x7c]
call fcn.0041f5e0
jmp 0x420058
mov ecx, dword [esp + 0x74]
push ecx
jmp 0x41ffed
mov edx, dword [esp + 0x74]
push edx
sub edi, ecx
jmp 0x41ffed
mov edx, dword [ebx + 0x60]
mov ecx, dword [ebx + 0x38]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.0041c450
test eax, eax
je 0x420078
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x48]
add ecx, edx
add ebp, ecx
jmp 0x41fd25
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x58]
jb 0x41fca7
mov eax, dword [esp + 0x50]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret 0x68