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

Disassembly:
sub esp, 0x854
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
cmp dword [esi], 4
jne 0x415281
mov edi, dword [esi + 0x78]
sar edi, 2
mov dword [esp + 0x38], edi
jmp 0x41528c
mov eax, dword [esi + 0x78]
sar eax, 1
mov dword [esp + 0x38], eax
mov edi, eax
push edi
mov ecx, esi
call fcn.00415a90
mov ebp, dword [esi + 0x7c]
xor edx, edx
mov ecx, 0xffff8300
mov dword [esp + 0x14], 0
test ebp, ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x7c], edx
je 0x415921
jmp 0x4152cb
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x415828
mov eax, dword [esi]
cmp eax, 4
mov eax, dword [ebp]
mov esi, eax
jne 0x415303
and eax, 3
mov edi, eax
mov eax, dword [ebp + 4]
mov ebx, eax
sar esi, 2
sar ebx, 2
and eax, 3
mov dword [esp + 0x30], esi
mov dword [esp + 0x44], ebx
mov dword [esp + 0x3c], eax
jmp 0x415328
and eax, 1
sar esi, 1
mov edi, eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], esi
mov esi, eax
sar esi, 1
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x30]
mov ebx, dword [esp + 0x44]
and eax, 1
mov dword [esp + 0x3c], eax
cmp esi, ebx
mov dword [esp + 0x48], 0
jne 0x415440
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
push ecx
push esi
mov ecx, ebp
call fcn.00413de0
mov eax, dword [esp + 0x3c]
sub eax, edi
mov edi, eax
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x41541b
cmp word [esp + 0x1a], 0
je 0x41540d
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
cmp edx, 2
mov edx, dword [esp + 0x14]
jne 0x41538f
shr edx, 2
and edx, 0xff00ff
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
shr edx, 2
jmp 0x4153a3
shr edx, 4
and edx, 0xff00ff
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
shr edx, 4
and edx, 0xff00ff
mov dword [esp + 0x2c], eax
mov dword [esp + 0x18], edx
cmp word [esp + 0x1a], 0xff
mov dword [esp + 0x3c], ecx
jne 0x4153d4
lea edx, [esp + 0x14]
push edx
lea edx, [eax + 1]
push edx
push eax
push ecx
call dword [ecx + 0x124]
add esp, 0x10
jmp 0x41540d
lea edx, [esp + 0x54]
lea ebx, [eax + 1]
push edx
push ebx
push eax
push ecx
call dword [ecx + 0x12c]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00415930
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x6c]
push edx
push ebx
push eax
mov eax, dword [esp + 0x60]
push eax
call dword [eax + 0x124]
add esp, 0x28
xor eax, eax
mov dword [esp + 0x1c], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov ecx, edi
imul edi, dword [esp + 0x28]
imul ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
add edx, ecx
add eax, edi
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], eax
jmp 0x415824
test edi, edi
je 0x415564
mov eax, dword [esp + 0x38]
lea edx, [esp + 0x24]
push edx
push eax
push esi
mov ecx, ebp
call fcn.00413de0
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], 1
mov ebx, dword [ecx]
mov ecx, dword [esp + 0x1c]
sub ebx, edi
cmp ecx, esi
je 0x415535
cmp word [esp + 0x1a], 0
je 0x415525
mov eax, dword [esp + 0x10]
mov edx, dword [eax]
cmp edx, 2
mov edx, dword [esp + 0x14]
jne 0x4154a7
shr edx, 2
and edx, 0xff00ff
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
shr edx, 2
jmp 0x4154bb
shr edx, 4
and edx, 0xff00ff
mov dword [esp + 0x14], edx
mov edx, dword [esp + 0x18]
shr edx, 4
and edx, 0xff00ff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
cmp word [esp + 0x1a], 0xff
mov dword [esp + 0x30], eax
jne 0x4154ec
lea edx, [esp + 0x14]
push edx
lea edx, [ecx + 1]
push edx
push ecx
push eax
call dword [eax + 0x124]
add esp, 0x10
jmp 0x415525
lea edx, [esp + 0x4c]
lea edi, [ecx + 1]
push edx
push edi
push ecx
push eax
call dword [eax + 0x12c]
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00415930
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x64]
push edx
push edi
push eax
mov eax, dword [esp + 0x54]
push eax
call dword [eax + 0x124]
add esp, 0x28
xor eax, eax
mov ecx, esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x24]
mov edx, ebx
imul edx, edi
mov eax, dword [esp + 0x14]
add eax, edx
mov edx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x28]
imul ebx, eax
add edx, ebx
mov ebx, dword [esp + 0x44]
inc esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x30], esi
jmp 0x41556c
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
cmp esi, ebx
jge 0x41571a
mov cl, byte [ebp + 0x11]
test cl, cl
je 0x4155c4
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx]
jne 0x4155c8
mov al, byte [ebp + 0x12]
test al, al
je 0x4155ab
xor eax, eax
lea edx, [ebp + 0x18]
mov al, byte [ebp + 0x13]
push eax
push edx
push ebx
push esi
call fcn.004149a0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
jmp 0x41571a
mov eax, dword [ebp + 0x18]
push ebx
push esi
push eax
call dword [eax + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
add esp, 0xc
jmp 0x41571a
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx]
mov dword [esp + 0x40], esi
sar ecx, 1
mov dword [esp + 0x2c], ecx
jmp 0x4155e6
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x44]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x40]
add edx, 0x100
cmp ebx, edx
jl 0x4155f6
mov ebx, edx
mov dl, byte [ebp + 0x10]
test dl, dl
je 0x415679
mov edi, dword [esp + 0x40]
lea esi, [esp + 0x64]
cmp edi, ebx
jge 0x4156eb
mov eax, dword [esp + 0x38]
push esi
push eax
push edi
mov ecx, ebp
call fcn.00413de0
mov edx, dword [esi]
mov ecx, dword [esp + 0x2c]
mov eax, dword [esi + 4]
add esi, 8
shr edx, cl
shr eax, cl
and edx, 0xff00ff
and eax, 0xff00ff
mov dword [esi - 8], edx
mov dword [esi - 4], eax
inc edi
cmp edi, ebx
jl 0x41560d
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov ecx, dword [esp + 0x34]
mov edx, dword [ebp + 0xc]
cmp edx, dword [ecx]
jne 0x4156f4
mov al, byte [ebp + 0x12]
test al, al
jne 0x4156f4
lea eax, [esp + 0x64]
push eax
push ebx
push edi
push ecx
call dword [ecx + 0x124]
add esp, 0x10
jmp 0x415700
mov edx, dword [esp + 0x48]
test edx, edx
jne 0x4156a7
mov edx, dword [esp + 0x38]
lea ecx, [esp + 0x24]
push ecx
push edx
push esi
mov ecx, ebp
call fcn.00413de0
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
mov dword [esp + 0x48], 1
shr edi, cl
shr eax, cl
mov ecx, dword [esp + 0x40]
and edi, 0xff00ff
and eax, 0xff00ff
inc ecx
mov dword [esp + 0x68], eax
cmp ecx, ebx
mov dword [esp + 0x64], edi
lea eax, [esp + 0x6c]
jge 0x415645
mov edx, ebx
sub edx, ecx
mov ecx, dword [esp + 0x64]
mov dword [eax], ecx
mov ecx, dword [esp + 0x68]
mov dword [eax + 4], ecx
add eax, 8
dec edx
jne 0x4156d3
jmp 0x415645
mov esi, dword [esp + 0x30]
jmp 0x415649
lea edx, [esp + 0x64]
push edx
push ebx
push edi
call fcn.00412bc0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x40], ebx
cmp ebx, eax
jl 0x4155d6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov ebx, eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x415824
mov al, byte [ebp + 0x10]
test al, al
jne 0x415735
mov eax, dword [esp + 0x48]
test eax, eax
jne 0x41574f
mov ecx, dword [esp + 0x38]
lea eax, [esp + 0x24]
push eax
push ecx
push ebx
mov ecx, ebp
call fcn.00413de0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
cmp ecx, ebx
je 0x415802
cmp word [esp + 0x1a], 0
je 0x4157f8
mov eax, dword [esp + 0x10]
mov esi, dword [eax]
cmp esi, 2
mov esi, dword [esp + 0x14]
jne 0x415784
shr esi, 2
and esi, 0xff00ff
mov dword [esp + 0x14], esi
shr edx, 2
jmp 0x415794
shr esi, 4
and esi, 0xff00ff
mov dword [esp + 0x14], esi
shr edx, 4
and edx, 0xff00ff
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x18], edx
cmp word [esp + 0x1a], 0xff
mov edi, eax
jne 0x4157c3
lea edx, [esp + 0x14]
push edx
lea edx, [ecx + 1]
push edx
push ecx
push eax
call dword [eax + 0x124]
add esp, 0x10
jmp 0x4157f8
lea edx, [esp + 0x5c]
lea esi, [ecx + 1]
push edx
push esi
push ecx
push eax
call dword [eax + 0x12c]
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.00415930
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x74]
push edx
push esi
push eax
push edi
call dword [edi + 0x124]
add esp, 0x28
xor edx, edx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
imul ecx, eax
mov esi, dword [esp + 0x14]
add esi, ecx
mov ecx, dword [esp + 0x28]
imul ecx, eax
add edx, ecx
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], edx
mov esi, dword [esp + 0x34]
mov edi, dword [ebp + 8]
push ebp
lea ecx, [esi + 0xa4]
call fcn.0040b020
test edi, edi
mov ebp, edi
jne 0x4152c3
cmp word [esp + 0x1a], di
je 0x415921
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
cmp dword [eax], 2
jne 0x41586f
mov ecx, dword [esp + 0x18]
shr edx, 2
and edx, 0xff00ff
mov dword [esp + 0x14], edx
shr ecx, 2
jmp 0x415883
mov ecx, dword [esp + 0x18]
shr edx, 4
and edx, 0xff00ff
mov dword [esp + 0x14], edx
shr ecx, 4
and ecx, 0xff00ff
mov edi, eax
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x1c]
cmp word [esp + 0x1a], 0xff
mov ebx, ecx
jne 0x4158bd
lea edx, [esp + 0x14]
push edx
lea edx, [ecx + 1]
push edx
push ecx
push eax
call dword [eax + 0x124]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret
lea edx, [esp + 0x24]
lea esi, [ecx + 1]
push edx
push esi
push ecx
push eax
call dword [eax + 0x12c]
mov ecx, dword [esp + 0x2a]
mov edx, dword [esp + 0x34]
and ecx, 0xffff
mov eax, 0x100
sub eax, ecx
mov ebp, dword [esp + 0x28]
imul edx, eax
imul eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x24]
shr eax, 8
add eax, ebp
and eax, 0xff00ff
mov dword [esp + 0x38], eax
lea eax, [esp + 0x34]
shr edx, 8
add edx, ecx
push eax
push esi
and edx, 0xff00ff
push ebx
push edi
mov dword [esp + 0x44], edx
call dword [edi + 0x124]
add esp, 0x20
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x854
ret