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

Disassembly:
test dword [0x4b63ec], 0xffffff80
jne 0x411cfc
test dword [0x4b63ec], 0xffffffff
jne 0x41217c
call fcn.00490ee4
jmp fcn.00411cd4
push edi
push esi
push ebp
push ebx
sub esp, 0x7c
mov ebx, ecx
movzx eax, word [ebx + 0x10]
cmp eax, 0xff
je 0x412144
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0xe078]
test eax, eax
je 0x411d41
cmp eax, dword [ebx + 0x50]
je 0x411d41
mov ecx, ebx
call fcn.00413440
test eax, eax
jne 0x411d41
add esp, 0x7c
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov ebp, dword [esp + 0x90]
mov ecx, dword [ebp + 4]
mov esi, dword [ebx + 0x30]
mov eax, ecx
xor edx, edx
div esi
sub ecx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebp + 4], ecx
mov esi, dword [ebx + 0x30]
lea edi, [esi + eax]
xor edx, edx
div esi
neg edx
lea edx, [edi + edx - 1]
mov dword [esp + 0x10], edx
mov esi, dword [ebp]
mov eax, esi
mov dword [ebp + 0xc], edx
mov edi, dword [ebx + 0x30]
xor edx, edx
div edi
sub esi, edx
mov eax, dword [ebp + 8]
mov dword [esp + 0x74], esi
xor edx, edx
mov dword [ebp], esi
mov esi, dword [ebx + 0x30]
lea edi, [esi + eax]
div esi
neg edx
lea esi, [edi + edx - 1]
mov dword [ebp + 8], esi
mov ebp, dword [ebx + 0x30]
mov eax, ecx
mov dword [esp + 0x58], ebp
xor edx, edx
mov edi, dword [esp + 0x74]
div ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
mov dword [esp + 0x10], eax
mov eax, edi
xor edx, edx
div ebp
mov dword [esp + 0x78], eax
mov eax, esi
xor edx, edx
div ebp
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 4]
movzx esi, byte [ebx + 0xc]
mov dword [esp + 0x44], edx
imul edi, esi
imul ecx, edx
add ecx, dword [ebx + 0x50]
mov ebp, edi
sar ebp, 2
shr ebp, 0x1d
add ebp, edi
sar ebp, 3
add ecx, ebp
mov ebp, esi
imul ebp, dword [esp + 0x78]
imul edx, dword [esp + 0xc]
mov edi, ebp
sar edi, 2
shr edi, 0x1d
add edi, ebp
sar edi, 3
mov ebp, eax
add edi, dword [ebx + 0x34]
add edi, edx
movzx edx, byte [ebx + 0xf]
mov dword [esp + 0x18], edi
test edx, edx
mov edx, dword [esp + 0x58]
je 0x412095
mov edi, esi
sar edi, 2
shr edi, 0x1d
add esi, edi
sar esi, 3
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp edi, eax
jge 0x41208b
sub ebp, dword [esp + 0x78]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x58], edx
mov edx, dword [esp + 0x44]
test ebp, ebp
jle 0x412073
mov dword [esp + 0x28], ebp
xor edx, edx
xor eax, eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x58]
test eax, eax
jbe 0x412110
mov dword [esp + 0x14], ebx
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x40], eax
xor esi, esi
xor ebp, ebp
mov dword [esp + 0x60], ecx
movzx edi, word [ebx + 0x10]
mov edx, dword [ebx + 4]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x30]
imul edi, dword [esp + 0x58]
imul edi, dword [esp + 0x20]
add edi, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
movzx edx, byte [ebx + 0x16]
mov dword [esp + 0x74], edx
movzx edx, byte [ebx + 0x17]
mov dword [esp + 0x70], edx
movzx edx, byte [ebx + 0x18]
mov dword [esp + 0x6c], edx
movzx edx, word [ebx + 0x12]
mov dword [esp + 0x68], edx
movzx edx, word [ebx + 0x14]
mov dword [esp + 0x64], edx
xor edx, edx
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x58]
test esi, esi
jbe 0x411fa1
mov dword [esp + 0x3c], edx
xor ebx, ebx
lea ecx, [edi + edx]
mov dword [esp + 0x4c], ecx
xor eax, eax
mov esi, dword [esp + 0x40]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x30]
test ebp, ebp
je 0x412109
mov dword [esp + 0x50], eax
xor edi, edi
xor edx, edx
mov dword [esp + 0x48], ebx
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + eax]
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov ebx, dword [esp + 0x54]
movzx eax, byte [ebx + edx]
inc edx
shl eax, cl
add edi, eax
add ecx, 8
cmp edx, ebp
jb 0x411f3e
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x70]
and edx, dword [esp + 0x78]
add esi, edx
mov edx, edi
shr edx, cl
mov ecx, dword [esp + 0x6c]
and edx, dword [esp + 0x68]
add eax, ebp
inc ebx
add dword [esp + 0x60], edx
shr edi, cl
and edi, dword [esp + 0x64]
add dword [esp + 0x5c], edi
mov edi, dword [esp + 0x58]
cmp ebx, edi
jb 0x411f19
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
add edx, dword [esp + 0x44]
inc ebp
cmp ebp, esi
jb 0x411ef2
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
imul edi, edi
xor edx, edx
div edi
mov ebp, eax
mov eax, ecx
xor edx, edx
div edi
mov dword [esp + 0x78], eax
mov eax, esi
xor edx, edx
div edi
mov esi, eax
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x412001
movzx ecx, byte [ebx + 0x16]
mov edx, dword [esp + 0x78]
shl ebp, cl
movzx ecx, byte [ebx + 0x17]
shl edx, cl
add ebp, edx
movzx ecx, byte [ebx + 0x18]
shl esi, cl
add ebp, esi
jmp 0x412010
mov eax, ebp
mov edx, dword [esp + 0x78]
mov ecx, esi
call fcn.00412608
mov ebp, eax
mov edx, dword [esp + 0x30]
test edx, edx
je 0x412041
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
lea edi, [edx + ecx]
xor ecx, ecx
mov esi, dword [esp + 0x30]
mov edx, ebp
shr edx, cl
add ecx, 8
mov byte [edi + eax], dl
inc eax
cmp eax, esi
jb 0x41202b
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
inc edx
add eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
cmp edx, ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
jl 0x411e7f
mov ebp, ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x58]
imul eax, edx
add ecx, eax
add esi, edx
inc edi
mov eax, dword [esp + 0x10]
cmp edi, eax
jl 0x411e5b
add esp, 0x7c
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov edi, esi
sar edi, 2
shr edi, 0x1d
add esi, edi
sar esi, 3
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp edi, eax
jge 0x41208b
sub ebp, dword [esp + 0x78]
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], ebp
mov ebp, dword [esp + 0x44]
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x41212d
mov dword [esp + 0x18], edi
xor esi, esi
mov ebp, edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], eax
jmp 0x4120e7
mov edx, dword [ebx + 0x30]
imul edx, edi
imul edx, esi
add edx, dword [esp + 0x1c]
push edi
push edx
push ebp
call fcn.0049106c
add esp, 0xc
add ebp, edi
inc esi
mov eax, dword [esp + 0x28]
cmp esi, eax
jl 0x4120e4
jmp 0x41211b
xor edi, edi
jmp 0x411f56
xor eax, eax
xor ecx, ecx
xor esi, esi
jmp 0x411fbe
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x30]
mov ebp, dword [ebx + 4]
mov esi, edx
imul esi, ebp
add ecx, esi
add edi, ebp
inc eax
mov esi, dword [esp + 0x10]
cmp eax, esi
jl 0x4120c6
jmp 0x41208b
movzx eax, word [ebx + 0x14]
cmp eax, 0xff
jne 0x411d14
movzx eax, word [ebx + 0x12]
cmp eax, 0xff
jne 0x411d14
cmp dword [ebx + 0x5c], 0
je 0x411d14
mov eax, 1
mov dword [esp + 0x2c], eax
jmp 0x411d1a
push edi
push esi
push ebp
push ebx
sub esp, 0x7c
mov ebx, ecx
movzx eax, word [ebx + 0x10]
cmp eax, 0xff
je 0x4125c4
xor eax, eax
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x54]
mov eax, dword [eax + 0xe078]
test eax, eax
je 0x4121c1
cmp eax, dword [ebx + 0x50]
je 0x4121c1
mov ecx, ebx
call fcn.00413440
test eax, eax
jne 0x4121c1
add esp, 0x7c
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov ebp, dword [esp + 0x90]
mov ecx, dword [ebp + 4]
mov esi, dword [ebx + 0x30]
mov eax, ecx
xor edx, edx
div esi
sub ecx, edx
mov dword [ebp + 4], ecx
mov esi, dword [ebx + 0x30]
mov eax, dword [ebp + 0xc]
lea edi, [esi + eax]
xor edx, edx
div esi
neg edx
lea edx, [edi + edx - 1]
mov dword [esp + 0x10], edx
mov dword [ebp + 0xc], edx
mov esi, dword [ebp]
mov edi, dword [ebx + 0x30]
mov eax, esi
xor edx, edx
div edi
sub esi, edx
mov dword [esp + 0x74], esi
mov dword [ebp], esi
mov esi, dword [ebx + 0x30]
mov eax, dword [ebp + 8]
lea edi, [esi + eax]
xor edx, edx
div esi
neg edx
lea esi, [edi + edx - 1]
mov dword [ebp + 8], esi
mov ebp, dword [ebx + 0x30]
mov dword [esp + 0x58], ebp
mov eax, ecx
xor edx, edx
div ebp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x10]
xor edx, edx
div ebp
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x74]
mov eax, edi
xor edx, edx
div ebp
mov dword [esp + 0x78], eax
mov eax, esi
xor edx, edx
div ebp
mov dword [esp + 0x28], eax
mov edx, dword [ebx + 4]
mov dword [esp + 0x44], edx
movzx esi, byte [ebx + 0xc]
imul edi, esi
imul ecx, edx
add ecx, dword [ebx + 0x50]
mov ebp, edi
sar ebp, 2
shr ebp, 0x1d
add ebp, edi
sar ebp, 3
add ecx, ebp
mov ebp, esi
imul ebp, dword [esp + 0x78]
mov edi, ebp
sar edi, 2
shr edi, 0x1d
add edi, ebp
sar edi, 3
add edi, dword [ebx + 0x34]
imul edx, dword [esp + 0xc]
add edi, edx
mov dword [esp + 0x18], edi
movzx edx, byte [ebx + 0xf]
test edx, edx
mov ebp, eax
mov edx, dword [esp + 0x58]
je 0x412515
mov edi, esi
sar edi, 2
shr edi, 0x1d
add esi, edi
sar esi, 3
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp edi, eax
jge 0x41250b
sub ebp, dword [esp + 0x78]
mov dword [esp + 0x30], esi
mov dword [esp + 0x58], edx
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x44]
test ebp, ebp
jle 0x4124f3
xor edx, edx
xor eax, eax
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], edi
mov eax, dword [esp + 0x58]
test eax, eax
jbe 0x412590
xor eax, eax
xor ecx, ecx
xor esi, esi
xor ebp, ebp
movzx edi, word [ebx + 0x10]
mov dword [esp + 0x78], edi
mov edi, dword [esp + 0x30]
imul edi, dword [esp + 0x58]
imul edi, dword [esp + 0x20]
add edi, dword [esp + 0x1c]
mov edx, dword [ebx + 4]
mov dword [esp + 0x44], edx
movzx edx, byte [ebx + 0x16]
mov dword [esp + 0x74], edx
movzx edx, byte [ebx + 0x17]
mov dword [esp + 0x70], edx
movzx edx, byte [ebx + 0x18]
mov dword [esp + 0x6c], edx
movzx edx, word [ebx + 0x12]
mov dword [esp + 0x68], edx
movzx edx, word [ebx + 0x14]
mov dword [esp + 0x64], edx
xor edx, edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x5c], esi
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x58]
test esi, esi
jbe 0x412421
xor ebx, ebx
lea ecx, [edi + edx]
xor eax, eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
mov ebp, dword [esp + 0x30]
mov esi, dword [esp + 0x40]
test ebp, ebp
je 0x412589
xor edi, edi
xor edx, edx
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx + eax]
mov dword [esp + 0x54], ecx
xor ecx, ecx
mov dword [esp + 0x50], eax
mov dword [esp + 0x48], ebx
mov ebx, dword [esp + 0x54]
movzx eax, byte [ebx + edx]
shl eax, cl
add edi, eax
add ecx, 8
inc edx
cmp edx, ebp
jb 0x4123be
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x48]
mov ecx, dword [esp + 0x74]
mov edx, edi
shr edx, cl
and edx, dword [esp + 0x78]
add esi, edx
mov ecx, dword [esp + 0x70]
mov edx, edi
shr edx, cl
and edx, dword [esp + 0x68]
add dword [esp + 0x60], edx
mov ecx, dword [esp + 0x6c]
shr edi, cl
and edi, dword [esp + 0x64]
add dword [esp + 0x5c], edi
add eax, ebp
inc ebx
mov edi, dword [esp + 0x58]
cmp ebx, edi
jb 0x412399
mov dword [esp + 0x40], esi
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
add edx, dword [esp + 0x44]
inc ebp
cmp ebp, esi
jb 0x412372
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x58]
imul edi, edi
xor edx, edx
div edi
mov ebp, eax
mov eax, ecx
xor edx, edx
div edi
mov dword [esp + 0x78], eax
mov eax, esi
xor edx, edx
div edi
mov esi, eax
mov edx, dword [esp + 0x2c]
test edx, edx
jne 0x412481
movzx ecx, byte [ebx + 0x16]
shl ebp, cl
movzx ecx, byte [ebx + 0x17]
mov edx, dword [esp + 0x78]
shl edx, cl
add ebp, edx
movzx ecx, byte [ebx + 0x18]
shl esi, cl
add ebp, esi
jmp 0x412490
mov eax, ebp
mov edx, dword [esp + 0x78]
mov ecx, esi
call fcn.00412608
mov ebp, eax
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4124c1
xor eax, eax
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x24]
lea edi, [edx + ecx]
xor ecx, ecx
mov esi, dword [esp + 0x30]
mov edx, ebp
shr edx, cl
mov byte [edi + eax], dl
add ecx, 8
inc eax
cmp eax, esi
jb 0x4124ab
mov eax, dword [ebx + 0x30]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x24]
add eax, dword [esp + 0x30]
mov dword [esp + 0x24], eax
mov edx, dword [esp + 0x20]
inc edx
mov dword [esp + 0x20], edx
mov ecx, dword [esp + 0x28]
cmp edx, ecx
jl 0x4122ff
mov ebp, ecx
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
mov edx, dword [ebx + 4]
mov eax, dword [esp + 0x58]
imul eax, edx
add ecx, eax
add esi, edx
inc edi
mov eax, dword [esp + 0x10]
cmp edi, eax
jl 0x4122db
add esp, 0x7c
pop ebx
pop ebp
pop esi
pop edi
ret 4
mov edi, esi
sar edi, 2
shr edi, 0x1d
add esi, edi
sar esi, 3
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
cmp edi, eax
jge 0x41250b
sub ebp, dword [esp + 0x78]
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], esi
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x44]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x4125ad
xor esi, esi
mov ebp, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0xc], eax
mov edi, dword [esp + 0x30]
jmp 0x412567
mov edx, dword [ebx + 0x30]
imul edx, edi
imul edx, esi
add edx, dword [esp + 0x1c]
push edi
push edx
push ebp
call fcn.0049106c
add esp, 0xc
add ebp, edi
inc esi
mov eax, dword [esp + 0x28]
cmp esi, eax
jl 0x412564
jmp 0x41259b
xor edi, edi
jmp 0x4123d6
xor eax, eax
xor ecx, ecx
xor esi, esi
jmp 0x41243e
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
mov edx, dword [ebx + 0x30]
mov ebp, dword [ebx + 4]
mov esi, edx
imul esi, ebp
add ecx, esi
add edi, ebp
inc eax
mov esi, dword [esp + 0x10]
cmp eax, esi
jl 0x412546
jmp 0x41250b
movzx eax, word [ebx + 0x14]
cmp eax, 0xff
jne 0x412194
movzx eax, word [ebx + 0x12]
cmp eax, 0xff
jne 0x412194
cmp dword [ebx + 0x5c], 0
je 0x412194
mov eax, 1
mov dword [esp + 0x2c], eax
jmp 0x41219a