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

Disassembly:
sub esp, 0x48
lea edx, [esp + 0x30]
push ebx
push ebp
push esi
mov esi, ecx
lea ecx, [esp + 0x2c]
push edi
mov eax, dword [esi]
push ecx
push edx
lea ecx, [esp + 0x20]
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, esi
call dword [eax + 0x278]
mov eax, dword [esi + 0xb0]
xor edi, edi
cmp eax, edi
je 0x41724b
mov ebx, dword [esi]
push eax
mov ecx, esi
call fcn.00407630
push eax
mov ecx, esi
call dword [ebx + 0x244]
mov eax, dword [esi + 0xb0]
push eax
call fcn.0041ab6e
add esp, 4
mov dword [esi + 0xb0], edi
lea ecx, [esp + 0x44]
lea edx, [esp + 0x48]
push ecx
push edx
mov ecx, esi
call fcn.004062d0
mov ebx, dword [esi + 0x94]
mov ecx, dword [esp + 0x18]
mov eax, dword [esi + 0x88]
mov ebp, dword [esp + 0x2c]
add ebx, ecx
xor ecx, ecx
cmp eax, edi
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
jle 0x417498
mov dword [esp + 0x14], edi
mov eax, dword [esi + 0x7c]
mov edi, dword [esp + 0x14]
add eax, edi
mov dword [esp + 0x20], eax
mov edi, dword [eax]
test edi, edi
je 0x41747a
movsx edx, word [eax + 4]
add ebp, edx
mov edx, dword [esi + 0xa4]
cmp ecx, edx
mov dword [esp + 0x10], ebp
jne 0x4172bd
add ebp, dword [esi + 0x90]
mov dword [esp + 0x10], ebp
mov ax, word [eax + 6]
test ax, ax
jl 0x4172cd
movsx ebp, ax
mov dword [esp + 0x10], ebp
mov eax, dword [edi]
push ebx
push ebp
mov ecx, edi
call dword [eax + 4]
mov eax, dword [esi + 0x74]
cmp eax, 3
je 0x4172e8
cmp eax, 4
je 0x4172e8
cmp eax, 5
jne 0x417326
mov edx, dword [edi]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x4c]
push eax
push ecx
mov ecx, edi
call dword [edx + 0xc]
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov edx, eax
sub edx, ecx
cmp dword [esp + 0x1c], edx
jge 0x417326
sub eax, dword [esp + 0x1c]
sub eax, ecx
mov ecx, dword [esp + 0x24]
cdq
sub eax, edx
mov edx, dword [edi]
sar eax, 1
lea ebx, [eax + ecx]
mov ecx, edi
push ebx
push ebp
call dword [edx + 4]
mov eax, dword [esp + 0x20]
cmp word [eax + 8], 0
jl 0x41735f
mov edx, dword [edi]
lea eax, [esp + 0x38]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, edi
call dword [edx + 0xc]
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x34]
movsx eax, word [edx + 8]
cmp ecx, eax
jle 0x41735f
mov ecx, dword [esp + 0x38]
mov edx, dword [edi]
push ecx
push eax
mov ecx, edi
call dword [edx + 0x10]
cmp edi, dword [esi + 0x78]
jne 0x417455
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0xb8]
test al, al
je 0x4173fd
mov eax, dword [esi + 0xac]
test eax, eax
je 0x4173d3
call fcn.004052a0
mov ebx, eax
call fcn.004052f0
mov ecx, dword [esi + 0xac]
mov ebp, dword [eax]
mov dword [esp + 0x20], eax
mov eax, dword [ecx]
call dword [eax]
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx + 0x10]
mov ecx, dword [esp + 0x24]
push eax
call dword [ebp + 0x58]
test al, al
je 0x4173d3
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0xa0]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
call dword [edx]
mov ebp, dword [esp + 0x10]
jmp 0x41745b
mov eax, dword [esi]
lea ecx, [esp + 0x50]
push ecx
mov ecx, esi
call dword [eax + 0xd0]
mov edx, dword [esi + 0x78]
mov eax, dword [eax]
mov ecx, dword [esi + 0x78]
push eax
mov edx, dword [edx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
call dword [edx]
mov ebp, dword [esp + 0x10]
jmp 0x41745b
mov ebp, dword [esp + 0x10]
mov ecx, dword [esi + 0x78]
lea edx, [ebx + 1]
mov eax, dword [ecx]
push edx
lea edx, [ebp + 1]
push edx
call dword [eax + 4]
mov ecx, dword [esi + 0x78]
mov edx, dword [esi + 0x98]
push edx
mov eax, dword [ecx]
call dword [eax + 0x14]
mov ecx, dword [esi + 0x78]
mov eax, dword [ecx]
call dword [eax]
call fcn.004052c0
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x54]
mov ecx, dword [esi + 0x78]
push ebx
push ebp
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esi + 0x78]
mov eax, dword [esi + 0x9c]
push eax
mov edx, dword [ecx]
call dword [edx + 0x14]
mov ecx, dword [esi + 0x78]
mov edx, dword [ecx]
call dword [edx]
jmp 0x41745b
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
mov edx, dword [edi]
lea eax, [esp + 0x54]
lea ecx, [esp + 0x3c]
push eax
push ecx
mov ecx, edi
call dword [edx + 0xc]
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
add ebp, eax
mov edx, dword [esp + 0x14]
mov eax, dword [esi + 0x88]
inc ecx
add edx, 0xc
cmp ecx, eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
jl 0x417288
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret