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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc8
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x28]
mov edx, dword [ebp + 0x20]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], eax
xor esi, esi
mov word [esp + 0x22], si
mov word [esp + 0x20], si
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov esi, 6
test edx, edx
js 0x417187
mov esi, edx
mov edx, eax
or edx, ecx
je 0x417197
mov ebx, esi
and ebx, 0x400
jmp 0x4171ab
mov edi, esi
and edi, 0x400
xor ebx, ebx
cmp dword [ebp + 0x14], 0
je 0x4171b1
test edi, edi
jne 0x4171b1
mov edi, ebx
mov bx, 8
mov edx, dword [ebp + 8]
bt esi, 0x10
jb 0x4171c3
movzx ebx, bx
or ebx, 0x800
mov dword [esp + 0x24], ebx
and esi, 0xf
sete bl
test edi, edi
setne bh
test edx, edx
je 0x417290
mov edx, dword [edx + 0x48]
mov dword [esp], edx
test edx, edx
je 0x417286
mov edx, dword [ebp + 8]
cmp dword [edx + 0x14], 2
jne 0x417286
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne dh
cmp dword [ebp + 0xc], 0
je 0x417286
or dh, dl
je 0x417286
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete dh
test dh, dl
jne 0x417286
cmp esi, 0xb
jae 0x417286
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov edx, dword [edx + 4]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 4]
mov dword [esp + 0x3c], edx
mov edx, dword [esp]
cmp dword [edx + 0x34], 0
mov edx, dword [ebp + 8]
mov edx, dword [edx + 0x10]
je 0x417268
cmp edx, 0xffffffff
jne 0x41727e
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 2
jmp 0x417290
test ecx, ecx
jne 0x417274
cmp edx, 0xffff
jne 0x41727e
mov edx, dword [esp]
mov dword [edx + 0x34], 1
or eax, ecx
je 0x41729a
test edi, edi
jne 0x41729a
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, dword [ebp + 0xc]
call fcn.00417c90
test eax, eax
je 0x417333
mov eax, dword [ebp + 0x30]
test eax, eax
jne 0x4172c8
lea eax, [esp + 0x88]
push eax
call fcn.00446d4f
add esp, 4
lea eax, [esp + 0x88]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x26]
push eax
call fcn.00417c99
add esp, 8
test edi, edi
je 0x4172ee
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x78], eax
mov bh, 1
jmp 0x417321
or bl, bh
xor ecx, ecx
mov eax, dword [ebp + 0x14]
push eax
push dword [ebp + 0x10]
push ecx
call fcn.00410e18
add esp, 0xc
mov dword [esp + 0x78], eax
xor eax, eax
mov dword [esp + 0x2c], eax
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x28], ecx
cmp ecx, 4
setb bh
jb 0x41731d
mov eax, esi
or bh, bl
mov esi, eax
push dword [ebp + 0xc]
call fcn.004490d0
add esp, 4
cmp eax, 0x10000
jb 0x417342
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x19
jmp 0x417290
mov edx, eax
mov byte [esp + 0x44], bh
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x7c], eax
mov ecx, dword [ebp + 8]
mov dword [esp + 0x18], edx
call fcn.00417d10
mov edx, dword [esp + 0x18]
mov ecx, dword [esp]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x58], ecx
xor ebx, ebx
mov ecx, dword [esp + 0x7c]
add ecx, edx
setb bl
add ecx, dword [esp + 0x58]
adc ebx, 0
mov dword [esp + 0x34], eax
mov eax, ecx
add eax, 0x4a
adc ebx, 0
mov edx, 0xfffffffe
cmp edx, eax
mov eax, 0
sbb eax, ebx
jae 0x4173a7
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x417290
mov eax, dword [esp]
mov eax, dword [eax + 0x34]
mov dword [esp + 0xc], eax
test eax, eax
mov edx, dword [esp + 0x18]
jne 0x41741f
shr edx, 0x1f
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], 0
mov eax, dword [esp + 0x7c]
add eax, dword [ebp + 0x38]
mov ebx, 0
adc ebx, 0xffffffff
add eax, dword [ebp + 0x40]
adc ebx, 0
mov edx, dword [esp + 0x18]
add edx, edx
add eax, edx
adc ebx, dword [esp + 0x10]
add eax, dword [esp + 0x34]
adc ebx, 0
add eax, dword [esp + 0x58]
adc ebx, 0
mov edx, dword [ebp + 8]
add eax, dword [edx]
adc ebx, dword [edx + 4]
mov edx, dword [esp + 0x18]
add eax, 0x72
adc ebx, 0
cmp ebx, 0xffffffff
je 0x41741f
mov eax, dword [esp]
mov dword [eax + 0x34], 1
xor eax, eax
inc eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x58], 0
test edx, edx
mov ebx, edx
mov edx, dword [ebp + 8]
je 0x41745f
mov eax, dword [ebp + 0xc]
cmp byte [ebx + eax - 1], 0x2f
mov ebx, dword [ebp + 0x14]
jne 0x417462
test ebx, ebx
jne 0x417453
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], 0x10
or eax, dword [esp + 0x28]
je 0x417462
mov dword [edx + 0x1c], 0x18
jmp 0x417290
mov ebx, dword [ebp + 0x14]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41746f
mov eax, 0x1c
add eax, ecx
add eax, 0x2e
mov ecx, dword [esp]
cmp dword [ecx + 8], eax
jae 0x417495
mov ecx, dword [ebp + 8]
mov edx, dword [esp]
push 1
push eax
call fcn.0041f159
mov ecx, dword [esp + 8]
add esp, 8
test eax, eax
je 0x4174f4
mov eax, dword [ecx + 0x14]
inc eax
cmp dword [ecx + 0x18], eax
jae 0x4174b6
mov ecx, dword [esp]
lea edx, [ecx + 0x10]
mov ecx, dword [ebp + 8]
push 1
push eax
call fcn.0041f159
add esp, 8
test eax, eax
je 0x4174f4
mov cl, byte [esp + 0x44]
xor cl, 1
xor eax, eax
test ebx, ebx
mov byte [esp + 0xc], cl
je 0x417503
test cl, cl
mov ecx, dword [ebp + 8]
je 0x417506
push 0x4df40
push 1
push dword [ecx + 0x34]
mov eax, dword [ebp + 8]
call dword [eax + 0x28]
mov ecx, dword [ebp + 8]
add esp, 0xc
test eax, eax
jne 0x417506
mov dword [ecx + 0x1c], 0x10
jmp 0x417290
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x10
jmp 0x417290
mov ecx, dword [ebp + 8]
mov dword [esp + 0x10], eax
mov ebx, dword [esp + 8]
mov edx, ebx
push dword [esp + 0x34]
push dword [esp + 8]
call fcn.00417d29
add esp, 8
test eax, eax
je 0x4175fa
test edi, edi
setne byte [esp + 0x54]
xor ecx, ecx
mov edi, dword [esp + 0x38]
mov eax, dword [esp + 0x34]
add edi, eax
mov edx, dword [esp + 0x3c]
adc edx, ecx
add ebx, eax
mov dword [esp + 8], ebx
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], edx
mov ebx, dword [esp + 4]
adc ebx, ecx
mov dword [esp + 0x88], ecx
mov dword [esp + 0x8c], ecx
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], ecx
mov dword [esp + 0x98], ecx
mov dword [esp + 0x9c], ecx
mov dword [esp + 0xa0], ecx
mov word [esp + 0xa4], 0
mov al, byte [esp + 0x54]
or al, byte [esp + 0xc]
movzx eax, al
shl eax, 3
mov dword [esp + 0x34], eax
mov eax, dword [esp]
cmp dword [eax + 0x34], ecx
mov eax, ebx
je 0x41760f
mov dword [esp + 0x1c], 0
mov dword [esp + 4], eax
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov eax, 0xfffffffe
cmp eax, ebx
mov eax, 0
mov dword [esp], ecx
sbb eax, ecx
jb 0x417701
xor eax, eax
mov ecx, 0xfffffffe
cmp ecx, edi
sbb eax, edx
jb 0x417701
xor eax, eax
mov ebx, dword [esp + 0x24]
mov dword [esp], edi
mov dword [esp + 0xc], edx
jmp 0x417768
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x417290
cmp dword [esp + 0x4c], 0
jne 0x417aa9
test eax, eax
jne 0x417aa9
mov dword [esp + 4], eax
mov dword [esp], edi
movzx edi, word [esp + 0x20]
movzx ebx, word [esp + 0x22]
movzx eax, word [esp + 0x24]
mov dword [esp + 0x1c], eax
movzx eax, word [esp + 0x34]
mov dword [esp + 0x40], eax
mov dword [esp + 0xc], edx
mov edx, 0xffff
mov eax, dword [ebp + 0x38]
and eax, edx
mov ecx, dword [esp + 0x18]
and edx, ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edi
push edi
mov dword [esp + 0x58], ebx
push ebx
push dword [esp + 0x24]
push dword [esp + 0x4c]
xor edi, edi
push edi
push edi
push edi
push edi
push edi
push eax
call fcn.00417e23
add esp, 0x28
push 0x1e
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
push dword [esp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x417863
mov eax, dword [esp + 8]
add eax, 0x1e
mov ecx, dword [esp + 4]
adc ecx, 0
mov ebx, dword [esp + 0x18]
push ebx
push dword [ebp + 0xc]
mov dword [esp + 0xc], ecx
push ecx
mov dword [esp + 0x14], eax
push eax
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4178eb
mov edx, dword [esp + 8]
add edx, dword [esp + 0x18]
mov ecx, dword [esp + 4]
adc ecx, 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x50], 0
jmp 0x417877
mov eax, 0xfffffffe
cmp eax, edi
mov eax, 0
sbb eax, edx
jb 0x417715
xor eax, eax
jmp 0x417719
lea eax, [esp + 0x38]
mov edi, 0xfffffffe
cmp edi, ebx
mov edi, 0
sbb edi, dword [esp]
mov edx, 0
jb 0x417736
mov edi, 0
jmp 0x41773a
lea edi, [esp + 0x48]
mov ebx, dword [esp + 0x24]
jae 0x417744
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x1c], ecx
push eax
push edi
call fcn.00417dbf
add esp, 8
mov ecx, dword [esp + 0x38]
mov dword [esp], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0xc], ecx
movzx edi, word [esp + 0x20]
movzx ecx, word [esp + 0x22]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x50], eax
mov ecx, dword [ebp + 0x38]
add eax, ecx
movzx ecx, bx
mov dword [esp + 0x40], ecx
movzx ecx, word [esp + 0x34]
mov dword [esp + 0x5c], ecx
xor ebx, ebx
mov edx, 0xffff
and eax, edx
mov ecx, dword [esp + 0x18]
and edx, ecx
lea ecx, [esp + 0x88]
mov dword [esp + 0x84], edi
push edi
push dword [esp + 0x58]
push dword [esp + 0x48]
push dword [esp + 0x68]
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call fcn.00417e23
add esp, 0x28
push 0x1e
lea eax, [esp + 0x8c]
push eax
push dword [esp + 0x14]
push dword [esp + 0xc]
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x417863
mov ecx, dword [esp + 8]
add ecx, 0x1e
mov ebx, dword [esp + 4]
adc ebx, 0
mov eax, edi
mov edi, dword [esp + 0x18]
push edi
push dword [ebp + 0xc]
push ebx
mov dword [esp + 0x14], ecx
push ecx
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x4178eb
mov edx, dword [esp + 8]
add edx, edi
adc ebx, 0
cmp dword [esp + 0x1c], 0
mov ecx, ebx
je 0x41786f
lea eax, [esp + 0xa8]
mov ebx, dword [esp + 0x50]
push ebx
push eax
mov dword [esp + 0xc], ecx
push ecx
mov edi, edx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x417907
mov edx, edi
add edx, dword [esp + 0x50]
mov ecx, dword [esp + 4]
adc ecx, 0
jmp 0x417877
mov dword [edi + 0x1c], 0x13
jmp 0x417290
mov dword [esp + 0x1c], 0
mov edi, dword [ebp + 0x38]
test edi, edi
mov dword [esp + 8], edx
mov dword [esp + 4], ecx
je 0x4178a8
push edi
push dword [ebp + 0x34]
push ecx
push edx
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, edi
jne 0x417907
mov eax, dword [ebp + 0x38]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp byte [esp + 0x44], 0
je 0x417916
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x4178eb
mov eax, dword [ebp + 0x14]
add dword [esp + 8], eax
adc dword [esp + 4], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], 0
jmp 0x417995
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x417290
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x417290
cmp dword [ebp + 0x14], 0
je 0x417995
lea edi, [esp + 0x60]
mov eax, dword [ebp + 8]
mov dword [edi], eax
mov eax, dword [esp + 8]
mov dword [edi + 8], eax
mov eax, dword [esp + 4]
mov dword [edi + 0xc], eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
push eax
push 0xfffffffffffffff1
push esi
call fcn.00410ef5
add esp, 0xc
push eax
push edi
push 0x4172ff
mov esi, dword [esp + 0x1c]
push esi
call fcn.00410f5f
add esp, 0x10
push 4
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call fcn.00414261
add esp, 0x10
cmp eax, 1
jne 0x417a89
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 4], eax
push dword [esp + 0x10]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp], eax
or ecx, eax
je 0x417b8e
mov dword [esp + 0x60], 0x8074b50
mov edx, dword [esp + 0x78]
mov byte [esp + 0x64], dl
mov byte [esp + 0x65], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x66], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x67], cl
mov ecx, dword [esp + 0x48]
mov ebx, dword [esp + 0x4c]
cmp dword [esp + 0x1c], 0
je 0x417aa5
mov byte [esp + 0x68], cl
mov byte [esp + 0x69], ch
mov edx, ecx
shr edx, 0x10
mov byte [esp + 0x6a], dl
mov edx, ebx
shr edx, 0x10
shr ecx, 0x18
mov byte [esp + 0x6b], cl
mov ecx, ebx
shr ecx, 0x18
mov byte [esp + 0x6c], bl
mov byte [esp + 0x6d], bh
mov byte [esp + 0x6e], dl
mov byte [esp + 0x6f], cl
mov edx, esi
mov byte [esp + 0x70], dl
mov byte [esp + 0x71], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x72], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x73], cl
mov dword [esp + 0x10], 0x38
mov dword [esp + 0x40], 0x30
mov ecx, 0x28
mov dword [esp + 0x44], 0x18
mov dword [esp + 0xc], 0x17
mov eax, dword [esp]
mov edx, eax
mov byte [esp + 0x17], al
mov dword [esp + 0x5c], 0x16
mov dword [esp + 0x80], 0x15
mov edi, 0x14
jmp 0x417aff
push dword [esp + 0x10]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x417290
test ebx, ebx
je 0x417ab8
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x417290
mov dword [esp + 0x68], ecx
mov dword [esp + 0x10], 0x18
mov dword [esp + 0x40], 0x10
mov ecx, 8
mov dword [esp + 0xc], 0xf
mov dword [esp + 0x5c], 0xe
mov edx, esi
mov byte [esp + 0x17], dl
mov dword [esp + 0x80], 0xd
mov edi, 0xc
mov dword [esp + 0x44], 0x10
mov ebx, esi
mov edx, dword [esp]
shrd ebx, edx, cl
shr edx, cl
mov al, byte [esp + 0x17]
mov byte [esp + edi + 0x60], al
test cl, 0x20
jne 0x417b18
mov edx, ebx
mov ecx, dword [esp + 0x80]
mov byte [esp + ecx + 0x60], dl
mov ebx, esi
mov ecx, dword [esp + 0x40]
mov edx, dword [esp]
shrd ebx, edx, cl
shr edx, cl
test cl, 0x20
jne 0x417b38
mov edx, ebx
mov ecx, dword [esp + 0x5c]
mov byte [esp + ecx + 0x60], dl
mov ecx, dword [esp + 0x10]
mov eax, dword [esp]
shrd esi, eax, cl
shr eax, cl
test cl, 0x20
jne 0x417b53
mov eax, esi
mov ecx, dword [esp + 0xc]
mov byte [esp + ecx + 0x60], al
lea eax, [esp + 0x60]
mov esi, dword [esp + 0x44]
push esi
push eax
push dword [esp + 0xc]
push dword [esp + 0x14]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x417290
mov eax, dword [esp + 0x44]
add dword [esp + 8], eax
adc dword [esp + 4], 0
cmp dword [esp + 0x1c], 0
je 0x417bed
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x38]
mov eax, 0
sbb eax, dword [esp + 0x3c]
jb 0x417baf
xor eax, eax
jmp 0x417bb3
lea eax, [esp + 0x38]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x417bce
mov edi, 0
jmp 0x417bd2
lea edi, [esp + 0x48]
jae 0x417bd8
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa8]
push eax
push edi
call fcn.00417dbf
add esp, 8
mov dword [esp + 0x50], eax
mov ecx, 0xffff
mov esi, dword [esp + 0x50]
and esi, ecx
mov eax, dword [esp + 0x18]
and eax, ecx
movzx edi, word [esp + 0x84]
movzx ebx, word [esp + 0x54]
movzx ecx, word [esp + 0x24]
mov dword [esp], ecx
movzx ecx, word [esp + 0x34]
mov dword [esp + 0x24], ecx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x60]
push dword [esp + 0x48]
push dword [esp + 0x48]
push edi
push ebx
push dword [esp + 0x1c]
push dword [esp + 0x44]
push dword [esp + 0x9c]
push dword [esp + 0x74]
push dword [esp + 0x74]
push dword [esp + 0x5c]
push dword [esp + 0x5c]
push dword [esp + 0xb4]
push dword [ebp + 0x18]
push esi
push dword [esp + 0x60]
push eax
call fcn.00417f3e
add esp, 0x4c
test eax, eax
je 0x417290
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp + 8]
mov dword [eax], ecx
mov ecx, dword [esp + 4]
mov dword [eax + 4], ecx
xor eax, eax
inc eax
jmp 0x417292