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

Disassembly:
sub esp, 0x38
push ebp
mov ebp, dword [esp + 0x40]
push esi
mov eax, dword [ebp + 0x14]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x41f96d
push eax
call dword [0x4e6058]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x41f988
inc dword [eax + 0xc]
cmp byte [eax + 0xa], 0
jne 0x41f988
push eax
call fcn.004268b0
add esp, 4
mov ecx, dword [ebp]
test ecx, ecx
je 0x41f9a3
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41f9a3
push eax
call dword [0x4e6058]
mov ecx, dword [ebp]
add esp, 4
mov esi, dword [ebp + 0x1c]
test esi, esi
je 0x41f9b8
cmp esi, 5
je 0x41f9b8
cmp esi, 6
jne 0x41ffe7
mov edx, dword [ebp + 0x18]
mov dword [esp + 0x30], 0
push ebx
push edi
mov esi, dword [edx + 4]
mov edi, dword [ebp + 4]
mov eax, dword [esi]
mov dword [esp + 0x24], eax
mov eax, dword [edi + 4]
mov eax, dword [eax]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x41f9eb
cmp byte [esi + 0x14], 2
jne 0x41f9eb
mov esi, 5
jmp 0x41fa14
xor esi, esi
test edx, edx
je 0x41f9f7
cmp byte [edx + 8], 0
jne 0x41fa14
push 0
push 0
push edx
call fcn.0044e0f0
mov edx, dword [ebp + 0x18]
add esp, 0xc
mov edi, dword [ebp + 4]
mov esi, eax
mov dword [esp + 0x38], 1
cmp dword [ebp + 0xc], 0
jne 0x41fa38
test esi, esi
jne 0x41fa60
mov eax, dword [edx + 4]
push esi
push esi
push dword [eax + 0x24]
push edi
call fcn.00451480
add esp, 0x10
cmp eax, 7
jne 0x41fa3c
mov esi, eax
jmp 0x41fa60
test esi, esi
jne 0x41fa60
cmp dword [ebp + 0xc], 0
jne 0x41fa60
lea eax, [ebp + 8]
push eax
push 2
push dword [ebp + 4]
call fcn.0044e0f0
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41fa60
mov dword [ebp + 0xc], 1
mov eax, dword [ebp + 0x18]
mov edx, dword [eax + 4]
mov eax, dword [ebp + 4]
mov ebx, dword [edx + 0x24]
mov eax, dword [eax + 4]
mov dword [esp + 0x14], ebx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov al, byte [eax + 5]
mov byte [esp + 0x4c], al
test esi, esi
jne 0x41fa95
cmp al, 5
jne 0x41fa95
cmp ebx, ecx
mov eax, 8
cmovne esi, eax
mov edx, dword [edx + 0x30]
xor ebx, ebx
mov dword [esp + 0x1c], edx
mov eax, dword [esp + 0x50]
test eax, eax
js 0x41faaa
cmp ebx, eax
jge 0x41fb1b
mov edi, dword [ebp + 0x10]
cmp edi, edx
ja 0x41fb1b
test esi, esi
jne 0x41fb56
mov eax, dword [ebp + 0x18]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4e6128]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
je 0x41fb11
push 2
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x2c]
push edi
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fb11
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 4]
push edi
push ebp
call fcn.004237a0
mov esi, eax
add esp, 0x10
mov eax, dword [esp + 0x18]
test eax, eax
je 0x41fb11
push eax
call fcn.00469790
add esp, 4
inc dword [ebp + 0x10]
inc ebx
mov edx, dword [esp + 0x1c]
jmp 0x41fa9e
test esi, esi
jne 0x41fb56
mov eax, edx
mov dword [ebp + 0x24], edx
sub eax, dword [ebp + 0x10]
inc eax
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x10], edx
ja 0x41fb5f
cmp dword [ebp + 0x28], esi
jne 0x41ffb3
mov eax, dword [ebp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
mov eax, dword [ecx + 0x58]
mov dword [ebp + 0x2c], eax
mov dword [ecx + 0x58], ebp
mov dword [ebp + 0x28], 1
jmp 0x41ffb3
cmp esi, 0x65
jne 0x41ffb3
test edx, edx
jne 0x41fbbc
mov edi, dword [ebp + 4]
cmp byte [edi + 9], dl
je 0x41fb7c
inc dword [edi + 0xc]
cmp byte [edi + 0xa], dl
jne 0x41fb7c
push edi
call fcn.004268b0
add esp, 4
mov eax, dword [edi + 4]
mov dword [eax + 0x30], 0
push dword [edi + 4]
call fcn.0043d2c0
add esp, 4
mov esi, eax
cmp byte [edi + 9], 0
je 0x41fba8
add dword [edi + 0xc], 0xffffffff
jne 0x41fba8
push edi
call fcn.00492520
add esp, 4
mov ebx, 1
test esi, esi
je 0x41fbc0
cmp esi, 0x65
jne 0x41ffb3
jmp 0x41fbc0
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebp + 8]
inc eax
push eax
push 1
push dword [ebp + 4]
call fcn.00451c80
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x41ffb3
mov eax, dword [ebp]
test eax, eax
je 0x41fbec
push eax
call fcn.0046f220
add esp, 4
cmp byte [esp + 0x4c], 5
jne 0x41fc80
mov esi, dword [ebp + 4]
mov eax, 0xffdf
push 0
push 0
push esi
mov edi, dword [esi + 4]
and word [edi + 0x18], ax
call fcn.0044e0f0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x41fc6d
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x38]
mov dword [esp + 0x4c], eax
cmp byte [eax + 0x12], 2
jne 0x41fc2f
cmp byte [eax + 0x13], 2
je 0x41fc6d
push 0
push 2
push esi
call fcn.0044e0f0
mov ecx, eax
add esp, 0xc
test ecx, ecx
jne 0x41fc6d
mov eax, dword [edi + 0xc]
push dword [eax + 0x48]
call fcn.004697f0
mov ecx, eax
add esp, 4
mov esi, ecx
test ecx, ecx
jne 0x41fc6d
mov eax, dword [esp + 0x4c]
mov word [eax + 0x12], 0x202
mov eax, 0xffdf
and word [edi + 0x18], ax
jmp 0x41fc80
mov eax, 0xffdf
mov esi, ecx
and word [edi + 0x18], ax
test ecx, ecx
jne 0x41ffb3
mov ecx, dword [esp + 0x20]
mov edi, dword [esp + 0x14]
cmp edi, ecx
jge 0x41ff79
mov eax, ecx
cdq
idiv edi
mov ecx, eax
lea eax, [ecx - 1]
add eax, ebx
cdq
idiv ecx
mov edi, eax
mov eax, ebx
imul dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x34], edx
xor edx, edx
mov ebx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x4c], eax
mov eax, dword [ebp + 4]
mov dword [esp + 0x30], ebx
lea ebx, [edi - 1]
mov ecx, dword [eax + 4]
mov eax, dword [0x4e6128]
div dword [ecx + 0x24]
inc eax
cmp edi, eax
cmovne ebx, edi
mov edi, dword [esp + 0x4c]
mov edi, edi
cmp ebx, edi
ja 0x41fd84
mov eax, dword [ebp + 4]
xor edx, edx
mov ecx, dword [eax + 4]
mov eax, dword [0x4e6128]
div dword [ecx + 0x24]
inc eax
cmp ebx, eax
je 0x41fd79
push 0
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x18]
push ebx
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fd79
mov ecx, dword [esp + 0x4c]
test byte [ecx + 0x1c], 4
mov edx, dword [ecx + 0x14]
je 0x41fd41
mov eax, dword [edx + 0x18]
cmp eax, dword [ecx + 0x18]
jb 0x41fd41
cmp dword [edx + 0x60], esi
je 0x41fd3d
push ecx
call fcn.004917e0
jmp 0x41fd63
xor esi, esi
jmp 0x41fd6c
mov esi, dword [edx + 0x28]
test esi, esi
jne 0x41fd6c
mov eax, dword [edx + 0x94]
push ecx
cmp eax, dword [edx + 0x98]
jbe 0x41fd5e
call fcn.0043f400
jmp 0x41fd63
call fcn.004406a0
mov ecx, dword [esp + 0x50]
add esp, 4
mov esi, eax
test ecx, ecx
je 0x41fd79
push ecx
call fcn.00469790
add esp, 4
inc ebx
test esi, esi
je 0x41fce0
jmp 0x41fd9a
test esi, esi
jne 0x41fd9a
mov ecx, dword [esp + 0x10]
push 1
push esi
push ecx
call fcn.00468220
add esp, 0xc
mov esi, eax
mov eax, dword [0x4e6128]
add eax, dword [esp + 0x20]
cdq
mov ecx, eax
mov eax, edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
cmp eax, edx
jg 0x41fdc4
jl 0x41fdd0
mov eax, dword [esp + 0x18]
cmp ecx, eax
jae 0x41fdc8
jmp 0x41fdd0
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], edx
mov eax, dword [0x4e6128]
mov ecx, dword [esp + 0x14]
add eax, ecx
cdq
mov dword [esp + 0x28], eax
mov ebx, eax
mov dword [esp + 0x2c], edx
mov edi, edx
test esi, esi
jne 0x41ffb3
mov eax, ecx
cdq
mov ecx, edx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
lea ecx, [ecx]
cmp edi, dword [esp + 0x20]
jg 0x41fee3
jl 0x41fe16
cmp ebx, dword [esp + 0x1c]
jae 0x41fee3
push 0
lea edx, [esp + 0x50]
mov dword [esp + 0x50], 0
push edx
push ecx
push eax
push edi
push ebx
call fcn.004aa760
inc eax
push eax
mov eax, dword [esp + 0x30]
push eax
mov eax, dword [eax + 0xcc]
call eax
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x41fe64
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x4c]
push edi
push ebx
push dword [esp + 0x1c]
mov ecx, dword [edx]
push dword [eax + 4]
push edx
mov eax, dword [ecx + 0xc]
call eax
add esp, 0x14
mov esi, eax
mov ecx, dword [esp + 0x4c]
test ecx, ecx
je 0x41fec2
test byte [ecx + 0x1c], 0x20
je 0x41feb9
mov edx, dword [ecx + 0x14]
dec dword [edx + 0x78]
mov eax, dword [edx + 0x88]
mov dword [ecx + 0x10], eax
mov edi, dword [edx + 0x3c]
mov eax, dword [edx + 0x98]
mov dword [edx + 0x88], ecx
push dword [ecx + 4]
mov ecx, dword [ecx + 0x18]
mov ebx, dword [edi]
dec ecx
cdq
push edx
push eax
push 0
push ecx
call fcn.004aa8f0
push edx
push eax
mov eax, dword [ebx + 0x48]
push edi
call eax
mov ebx, dword [esp + 0x38]
add esp, 0x10
mov edi, dword [esp + 0x2c]
jmp 0x41fec2
push ecx
call fcn.0046a550
add esp, 4
mov eax, dword [esp + 0x3c]
add ebx, eax
mov ecx, dword [esp + 0x40]
adc edi, ecx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
test esi, esi
je 0x41fe00
jmp 0x41ffb3
mov ebx, dword [esp + 0x30]
lea ecx, [esp + 0x40]
push ecx
push ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x18]
call eax
mov esi, eax
add esp, 8
test esi, esi
jne 0x41ffb3
mov ecx, dword [esp + 0x34]
cmp dword [esp + 0x44], ecx
jl 0x41ff29
jg 0x41ff17
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x40], eax
jbe 0x41ff29
mov eax, dword [ebx]
push ecx
push dword [esp + 0x1c]
mov eax, dword [eax + 0x10]
push ebx
call eax
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x41ffb3
mov ebx, dword [esp + 0x10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
test ecx, ecx
je 0x41ff54
push esi
push 0x15
push eax
mov eax, dword [ecx + 0x28]
call eax
add esp, 0xc
cmp eax, 0xc
cmovne esi, eax
test esi, esi
jne 0x41ffb3
xor esi, esi
cmp byte [ebx + 7], 0
jne 0x41ff97
movzx ecx, byte [ebx + 0xa]
mov edx, dword [ebx + 0x3c]
test ecx, ecx
je 0x41ff75
mov eax, dword [edx]
push ecx
push edx
mov eax, dword [eax + 0x14]
call eax
add esp, 8
jmp 0x41ff95
xor esi, esi
jmp 0x41ff97
mov eax, edi
cdq
idiv ecx
mov ecx, dword [esp + 0x10]
imul eax, ebx
push 0
push 0
push ecx
mov dword [ecx + 0x18], eax
call fcn.00468220
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x41ffb3
push esi
push dword [ebp + 4]
call fcn.0044e9f0
mov esi, eax
add esp, 8
test esi, esi
mov eax, 0x65
cmove esi, eax
cmp dword [esp + 0x38], 0
pop edi
pop ebx
je 0x41ffd3
push 0
push dword [ebp + 0x18]
call fcn.0044e950
push 0
push dword [ebp + 0x18]
call fcn.0044e9f0
add esp, 0x10
mov ecx, dword [ebp]
cmp esi, 0xc0a
mov eax, 7
cmove esi, eax
mov dword [ebp + 0x1c], esi
test ecx, ecx
je 0x41fffc
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x41fffc
push eax
call dword [0x4e6060]
add esp, 4
mov eax, dword [ebp + 0x18]
cmp byte [eax + 9], 0
je 0x420014
add dword [eax + 0xc], 0xffffffff
jne 0x420014
push eax
call fcn.00492520
add esp, 4
mov ecx, dword [ebp + 0x14]
mov ecx, dword [ecx + 0xc]
test ecx, ecx
je 0x420028
push ecx
call dword [0x4e6060]
add esp, 4
mov eax, esi
pop esi
pop ebp
add esp, 0x38
ret