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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x984164]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [edx]
push ebx
mov bl, byte [ebp + 0xc]
mov dword [esp + 0x28], edx
mov edx, dword [edx + 4]
push edi
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], edx
test eax, eax
je 0x41f83b
test byte [ebp + 0x18], 2
jne 0x41f83b
movzx edx, bl
mov dword [esp + 0x10], edx
sub edx, 2
je 0x41f82c
sub edx, 2
je 0x41f821
cdq
mov ebx, eax
add ebx, ecx
mov edi, edx
adc edi, dword [esp + 0x44]
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], edi
jmp 0x41f864
lea ebx, [ecx + eax]
xor edi, edi
mov dword [esp + 0x40], ebx
jmp 0x41f864
add eax, ecx
movzx eax, ax
cdq
mov ebx, eax
mov word [esp + 0x40], bx
jmp 0x41f862
movzx eax, bl
mov dword [esp + 0x10], eax
sub eax, 2
je 0x41f85a
sub eax, 2
mov ebx, ecx
mov dword [esp + 0x20], ebx
je 0x41f856
mov edi, edx
jmp 0x41f868
xor edi, edi
jmp 0x41f868
movzx eax, word [esp + 0x40]
cdq
mov ebx, eax
mov edi, edx
mov dword [esp + 0x20], ebx
mov eax, dword [ebp + 0x10]
xor edx, edx
add eax, ebx
mov dword [esp + 0x3c], edx
adc edx, edi
add eax, 0xffffffff
mov dword [esp + 0x18], eax
movzx eax, byte [ebp + 8]
lea ecx, [eax + eax*2]
lea ecx, [esi + ecx*8]
adc edx, 0xffffffff
test byte [ecx + 0x1b4], 4
mov dword [esp + 0x28], ecx
jne 0x41f8ba
cmp byte [esi + 0x16], 4
mov ecx, dword [ecx + 0x1a0]
jne 0x41f8b2
add ebx, ecx
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + 0x1a4]
adc edi, ecx
jmp 0x41f8b6
add ebx, ecx
xor edi, edi
mov dword [esp + 0x20], ebx
movsx ecx, byte [ebp + 0x18]
shr ecx, 1
and cl, 2
or cl, 1
or byte [esi + 0x102], cl
mov ecx, dword [ebp + 0x10]
lea eax, [eax + eax*2 + 0x36]
mov dword [esi + 0xe8], ebx
mov dword [esi + 0xec], edi
mov dword [esi + 0xf8], ecx
test byte [esi + eax*8], 0x80
jne 0x41f90a
mov dword [esi + 0xdc], 0
mov al, 0x1d
pop edi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret 0x14
cmp byte [esi + 0x16], 4
jne 0x41f960
cmp edx, 0x8000
jb 0x41f920
cmp edx, 0xffff8000
jb 0x41f983
mov ecx, dword [esp + 0x28]
movzx eax, byte [esi + 0x78]
lea eax, [eax + eax*2]
test byte [esi + eax*8 + 0x1b4], 2
jne 0x41f9ac
test byte [ebp + 0x18], 4
je 0x41f9ac
movzx ecx, word [ecx + 0x1b2]
and ecx, 0xfffffffc
mov dword [esi + 0xdc], ecx
mov al, 0x1d
pop edi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret 0x14
mov ecx, dword [esp + 0x28]
test byte [ecx + 0x1b4], 8
jne 0x41f924
cmp edx, dword [ecx + 0x1ac]
jb 0x41f924
ja 0x41f983
mov edx, dword [esp + 0x18]
cmp edx, dword [ecx + 0x1a8]
jbe 0x41f924
xor eax, eax
cmp byte [ebp + 8], 2
mov dword [esi + 0xdc], 0
setne al
add eax, 0x1c
pop edi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret 0x14
test byte [esi + 0x24a], 4
je 0x41fa3a
mov eax, dword [ebp + 0x10]
cmp eax, 1
jbe 0x41fa3a
test byte [esi + 0x19a], 4
je 0x41fa3a
test byte [ebp + 0x18], 0x10
jne 0x41fa3a
test byte [esi + 0x13], 8
jne 0x41fa3a
cmp byte [esi + 0x16], 1
jbe 0x41f9eb
movzx edx, word [esi + 0x1ca]
and edx, 3
cmp dl, 3
jne 0x41fa3a
lea ecx, [eax - 6]
cmp ecx, 0x66
ja case.0x41f9fa.7
movzx edx, byte [ecx + 0x41fef8]
jmp dword [edx*4 + 0x41fee8]
mov al, 1
jmp 0x41fa0f
mov al, 3
jmp 0x41fa0f
mov al, 7
jmp 0x41fa0f
dec al
movzx eax, al
cdq
and eax, ebx
and edx, edi
or eax, edx
je 0x41fa3a
mov dword [esi + 0xdc], 0
mov al, 0x21
pop edi
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret 0x14
mov al, byte [ebp + 0x18]
test al, 8
jne 0x41fa6b
test al, 4
je 0x41fa58
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x28]
mov edx, dword [ebp + 0x10]
push ecx
push edi
push ebx
mov ecx, esi
call eax
jmp 0x41fa81
mov ecx, dword [esp + 0x30]
mov eax, dword [esi + 0x20]
mov edx, dword [ebp + 0x10]
push ecx
push edi
push ebx
mov ecx, esi
call eax
jmp 0x41fa81
mov edx, dword [esp + 0x30]
mov eax, dword [ebp + 0x10]
push 0
push edx
push eax
mov eax, dword [esi + 0x2c]
push edi
push ebx
mov dl, 1
mov ecx, esi
call eax
mov byte [esp + 0xf], al
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x41fadf
mov cl, byte [ebp + 0x18]
test cl, 3
je 0x41fadf
cmp byte [esp + 0xf], 0
jne 0x41fadf
test cl, 1
je 0x41fab3
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x44]
mov dword [eax], ecx
mov dword [eax + 4], edx
jmp 0x41fadf
mov ecx, dword [esp + 0x10]
sub ecx, 2
cdq
je 0x41fad8
sub ecx, 2
mov ecx, dword [esp + 0x2c]
je 0x41facd
add dword [ecx], eax
adc dword [ecx + 4], edx
jmp 0x41fadf
add dword [ecx], eax
mov dword [ecx + 4], 0
jmp 0x41fadf
mov ecx, dword [esp + 0x2c]
add word [ecx], ax
cmp byte [esi + 0x300], 0
je 0x41fecf
cmp byte [esp + 0xf], 0
jne 0x41fecf
mov ecx, dword [ebp + 0x10]
mov eax, dword [esp + 0x3c]
add ecx, ebx
adc eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
mov dword [esp + 0x1c], eax
mov al, byte [esi + 0x302]
and al, 3
mov byte [esp + 0xd], 0
mov dword [esp + 0x18], ecx
cmp al, 3
jne 0x41fc0f
test byte [esi + 0x300], al
je 0x41fc0f
mov al, byte [esi + 0x302]
shr al, 2
and al, 3
cmp al, 2
jne 0x41fb48
cmp byte [esi + 0x16], 4
jne 0x41fb48
mov al, 7
movzx eax, al
cdq
mov ecx, edx
mov edx, eax
not edx
and edx, dword [esi + 0x2c8]
mov dword [esp + 0x3c], ecx
or eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x3c]
not ecx
and ecx, dword [esi + 0x2cc]
mov dword [esp + 0x40], edx
or eax, ecx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], eax
cmp ecx, edi
ja 0x41fb9e
jb 0x41fb92
cmp edx, ebx
ja 0x41fb9e
cmp edi, eax
jb 0x41fc0a
ja 0x41fb9e
cmp ebx, dword [esp + 0x10]
jbe 0x41fc0a
cmp ecx, dword [esp + 0x1c]
ja 0x41fbc6
jb 0x41fbac
cmp edx, dword [esp + 0x18]
ja 0x41fbc6
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x1c], edx
jb 0x41fc0a
ja 0x41fbc2
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jbe 0x41fc0a
mov edx, dword [esp + 0x40]
cmp ecx, edi
ja 0x41fbf4
jb 0x41fbd0
cmp edx, ebx
ja 0x41fbea
mov edx, dword [esp + 0x14]
cmp dword [esp + 0x1c], edx
jb 0x41fc0a
ja 0x41fbe6
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x10]
jbe 0x41fc0a
mov edx, dword [esp + 0x40]
cmp ecx, edi
jb 0x41fc0f
ja 0x41fbf4
cmp edx, ebx
jb 0x41fc0f
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x1c], ecx
jb 0x41fc0f
ja 0x41fc0a
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], edx
jb 0x41fc0f
mov byte [esp + 0xd], 1
mov al, byte [esi + 0x302]
and al, 0x30
cmp al, 0x30
jne 0x41fcf2
test byte [esi + 0x300], 0xc
je 0x41fcf2
mov al, byte [esi + 0x302]
shr al, 6
cmp al, 2
jne 0x41fc41
cmp byte [esi + 0x16], 4
jne 0x41fc41
mov al, 7
movzx eax, al
cdq
mov ebx, eax
mov ecx, edx
not ebx
and ebx, dword [esi + 0x2d0]
not ecx
and ecx, dword [esi + 0x2d4]
or eax, ebx
or edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp ecx, edi
ja 0x41fc85
jb 0x41fc71
cmp ebx, dword [esp + 0x20]
ja 0x41fc85
cmp edi, edx
jb 0x41fced
ja 0x41fc85
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jbe 0x41fced
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
ja 0x41fcad
jb 0x41fc95
cmp ebx, dword [esp + 0x18]
ja 0x41fcad
cmp eax, edx
jb 0x41fced
ja 0x41fcad
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jbe 0x41fced
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, edi
ja 0x41fcdd
jb 0x41fcb9
cmp ebx, dword [esp + 0x20]
ja 0x41fcd1
cmp eax, edx
jb 0x41fced
ja 0x41fcd1
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], edx
jbe 0x41fced
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, edi
jb 0x41fcf2
ja 0x41fcdd
cmp ebx, dword [esp + 0x20]
jb 0x41fcf2
cmp eax, edx
jb 0x41fcf2
ja 0x41fced
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jb 0x41fcf2
or byte [esp + 0xd], 2
mov al, byte [esi + 0x303]
mov cl, al
and cl, 3
cmp cl, 3
jne 0x41fddb
test byte [esi + 0x300], 0x30
je 0x41fddb
shr al, 2
and al, cl
cmp al, 2
jne 0x41fd24
cmp byte [esi + 0x16], 4
jne 0x41fd24
mov al, 7
movzx eax, al
cdq
mov ebx, eax
mov ecx, edx
not ebx
and ebx, dword [esi + 0x2d8]
not ecx
and ecx, dword [esi + 0x2dc]
or eax, ebx
or edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp ecx, edi
ja 0x41fd68
jb 0x41fd54
cmp ebx, dword [esp + 0x20]
ja 0x41fd68
cmp edi, edx
jb 0x41fdd0
ja 0x41fd68
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jbe 0x41fdd0
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
ja 0x41fd90
jb 0x41fd78
cmp ebx, dword [esp + 0x18]
ja 0x41fd90
cmp eax, edx
jb 0x41fdd0
ja 0x41fd90
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jbe 0x41fdd0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, edi
ja 0x41fdc0
jb 0x41fd9c
cmp ebx, dword [esp + 0x20]
ja 0x41fdb4
cmp eax, edx
jb 0x41fdd0
ja 0x41fdb4
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], edx
jbe 0x41fdd0
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, edi
jb 0x41fdd5
ja 0x41fdc0
cmp ebx, dword [esp + 0x20]
jb 0x41fdd5
cmp eax, edx
jb 0x41fdd5
ja 0x41fdd0
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jb 0x41fdd5
or byte [esp + 0xd], 4
mov al, byte [esi + 0x303]
mov cl, al
and cl, 0x30
cmp cl, 0x30
jne 0x41feb6
test byte [esi + 0x300], 0xc0
je 0x41feb6
shr al, 6
cmp al, 2
jne 0x41fe05
cmp byte [esi + 0x16], 4
jne 0x41fe05
mov al, 7
movzx eax, al
cdq
mov ebx, eax
mov ecx, edx
not ebx
and ebx, dword [esi + 0x2e0]
not ecx
and ecx, dword [esi + 0x2e4]
or eax, ebx
or edx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
cmp ecx, edi
ja 0x41fe49
jb 0x41fe35
cmp ebx, dword [esp + 0x20]
ja 0x41fe49
cmp edi, edx
jb 0x41feb1
ja 0x41fe49
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x20], edx
jbe 0x41feb1
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp ecx, eax
ja 0x41fe71
jb 0x41fe59
cmp ebx, dword [esp + 0x18]
ja 0x41fe71
cmp eax, edx
jb 0x41feb1
ja 0x41fe71
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jbe 0x41feb1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, edi
ja 0x41fea1
jb 0x41fe7d
cmp ebx, dword [esp + 0x20]
ja 0x41fe95
cmp eax, edx
jb 0x41feb1
ja 0x41fe95
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x18], edx
jbe 0x41feb1
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
cmp ecx, edi
jb 0x41feb6
ja 0x41fea1
cmp ebx, dword [esp + 0x20]
jb 0x41feb6
cmp eax, edx
jb 0x41feb6
ja 0x41feb1
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
jb 0x41feb6
or byte [esp + 0xd], 8
mov al, byte [esp + 0xd]
test al, al
je 0x41fecf
or byte [esi + 0x12], al
or byte [esi + 0x14], 4
mov dword [esi + 0xdc], 5
mov ecx, dword [esp + 0x4c]
mov al, byte [esp + 0xf]
pop edi
pop ebx
xor ecx, esp
call fcn.005078c8
mov esp, ebp
pop ebp
ret 0x14