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

Disassembly:
sub esp, 0x58
push ebx
push esi
push edi
mov esi, 1
mov edi, dword [esp + 0x68]
push ebp
mov byte [esp + 0x1c], 0
mov eax, dword [edi + 0x20]
mov dword [esp + 0x38], esi
mov dword [esp + 0x28], eax
push edi
mov dword [esp + 0x18], 0
mov eax, dword [esp + 0x90]
mov dword [esp + 0x1c], eax
nop
mov byte [eax], 0
call fcn.17dfb270
mov ecx, dword [edi + 0x18]
mov eax, ecx
shl ecx, 3
sub ecx, eax
add esp, 4
mov edx, dword [edi + 4]
lea eax, [edx + ecx*8]
mov ecx, dword [edi + 0x1c]
mov ebx, ecx
mov dword [esp + 0x10], eax
shl ecx, 3
lea eax, [esp + 0x30]
sub ecx, ebx
push eax
lea ebx, [edx + ecx*8]
mov ecx, dword [esp + 0x84]
mov edx, dword [ecx]
push edx
push edi
call fcn.17dfb1d0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x8c]
add esp, 0xc
mov dword [ecx], eax
mov dword [edx], eax
mov ecx, dword [esp + 0x88]
test ecx, ecx
je 0x17dfa8ed
mov edx, dword [0x17e831b8]
cmp edx, eax
je 0x17dfa8ef
xor esi, esi
test ecx, ecx
je 0x17dfa907
mov ecx, dword [0x17e831b8]
cmp ecx, eax
je 0x17dfa907
mov dword [esp + 0x24], 1
jmp 0x17dfa90f
mov dword [esp + 0x24], 0
mov ecx, dword [esp + 0x90]
mov eax, dword [ecx]
mov edx, dword [edi + 8]
cmp eax, 1
sbb eax, eax
inc eax
mov dword [edi + 0x30], eax
mov eax, dword [ecx]
push eax
push edx
call fcn.17df1040
add esp, 8
mov ecx, dword [edi + 0x30]
test ecx, ecx
je 0x17dfa959
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x7c]
mov eax, dword [ecx]
mov ecx, dword [edi + 0x34]
push eax
push edx
push ecx
mov eax, dword [edi + 0x38]
push eax
mov edx, dword [edi + 8]
push edx
call fcn.17df1060
add esp, 0x14
jmp 0x17dfa971
mov eax, dword [0x17e8c138]
mov ebp, 0x64
dec eax
sub edx, edx
imul eax, dword [esp + 0x84]
div ebp
inc eax
mov edx, dword [edi + 0xc]
mov dword [edi + 0x34], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x34]
push eax
push ecx
push edx
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push ecx
push edx
call 0x17e9bccc
mov ecx, dword [esp + 0x28]
add esp, 0x18
mov ecx, dword [ecx + 4]
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
lea eax, [eax + edx - 1]
sub edx, edx
div dword [ecx + 8]
mov ebp, eax
mov edx, dword [ecx + 8]
mov eax, dword [ecx]
lea eax, [eax + edx - 1]
sub edx, edx
div dword [ecx + 8]
imul ebp, eax
mov eax, dword [edi + 0x3c]
mov dword [esp + 0x34], ebp
test eax, eax
je 0x17dfa9f0
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0x2c]
mov edx, dword [ecx + 0x14]
push eax
mov ecx, dword [edi + 0x10]
push edx
mov eax, dword [edi + 0x14]
push eax
mov edx, dword [edi + 0xc]
mov eax, dword [esp + 0x7c]
push ecx
push edx
push eax
call fcn.17df77f0
add esp, 0x18
jmp 0x17dfaa15
test esi, esi
jne 0x17dfaa15
mov ecx, dword [esp + 0x10]
mov edx, dword [edi + 0x14]
mov eax, dword [ecx + 0x2c]
mov ecx, dword [edi + 0x10]
push eax
push edx
push ecx
mov eax, dword [edi + 0xc]
mov edx, dword [esp + 0x7c]
push eax
push edx
call fcn.17dfb340
add esp, 0x14
mov eax, dword [edi + 0x3c]
mov ecx, dword [esp + 0x10]
test eax, eax
nop
mov edx, dword [ecx + 4]
je 0x17dfaa44
add ecx, 0x34
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov ecx, dword [edx + 8]
mov eax, dword [ebp]
mov ebp, dword [edx + 4]
push eax
push ecx
push ebp
mov eax, dword [edx]
mov ecx, dword [esp + 0x2c]
push eax
jmp 0x17dfaa64
add ecx, 0x34
mov ebp, dword [esp + 0x10]
mov dword [esp + 0x20], ecx
mov eax, dword [ebp]
push eax
mov eax, dword [edx + 8]
shr eax, 1
push eax
mov eax, dword [edx + 4]
shr eax, 1
push eax
mov eax, dword [edx]
shr eax, 1
push eax
mov edx, dword [ecx]
push edx
call 0x17e9bccc
add esp, 0x14
mov eax, dword [edi + 0x3c]
test eax, eax
mov eax, dword [edi + 0x34]
je 0x17dfaa82
mov edx, dword [eax*4 + 0x17e83a58]
jmp 0x17dfaa89
mov edx, dword [eax*4 + 0x17e839d8]
test esi, esi
jne 0x17dfaab7
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push eax
mov ebp, dword [ebx + 0x2c]
mov ecx, dword [ecx + 0x2c]
push edx
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push edx
push ecx
sub ecx, ebp
push ecx
mov ecx, dword [eax]
push ecx
call 0x17e9bccc
add esp, 0x18
jmp 0x17dfaabb
mov eax, dword [esp + 0x3c]
test esi, esi
jne 0x17dfaad8
mov ecx, dword [edi + 0x34]
push ecx
push eax
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, dword [eax]
push edx
push ecx
call 0x17e9bccc
add esp, 0x10
mov eax, dword [0x17e831c0]
mov ecx, dword [esp + 0x10]
cmp dword [ecx], eax
jne 0x17dfab09
mov eax, dword [esp + 0x38]
mov esi, dword [0x17e831cc]
test eax, eax
jne 0x17dfab0f
mov eax, dword [esp + 0x80]
push edi
mov dword [ecx], esi
mov dword [eax], esi
call fcn.17dfb290
add esp, 4
jmp 0x17dfab0f
mov esi, dword [0x17e831cc]
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x5c]
mov eax, dword [ecx]
lea ecx, [esp + 0x14]
push eax
push edi
push edx
push ecx
call fcn.17df1170
mov ecx, dword [esp + 0x20]
add esp, 0x10
cmp dword [ecx], esi
je 0x17dfad90
mov esi, dword [ecx + 4]
xor ebp, ebp
mov eax, dword [edi]
add eax, 2
je 0x17dfad90
add ecx, 0x14
add ebx, 0x14
xor eax, eax
mov dword [esp + 0x24], ecx
mov al, byte [0x17e830f8]
mov dword [esp + 0x2c], ebx
inc eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x20]
mov dword [esp + 0x28], eax
mov eax, dword [edi]
cmp eax, ebp
jbe 0x17dfabf2
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x17dfabb4
mov eax, dword [esi + 0xc]
lea ecx, [esp + 0x28]
mov edx, dword [esp + 0x2c]
cmp eax, 3
mov eax, dword [esp + 0x30]
push eax
push ebp
push ecx
mov eax, dword [edx]
mov ecx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
mov edx, dword [ecx]
push edx
mov ecx, dword [eax]
push ecx
push esi
je 0x17dfabaa
call 0x17e9bccc
add esp, 0x1c
jmp 0x17dfabe8
call 0x17e9bccc
add esp, 0x1c
jmp 0x17dfabe8
mov eax, dword [esp + 0x30]
mov ecx, dword [edi + 0x24]
lea edx, [esp + 0x28]
push eax
mov eax, dword [esp + 0x30]
push ecx
push edx
mov edx, dword [esp + 0x30]
mov ecx, dword [eax]
push ecx
mov ecx, dword [esp + 0x80]
mov eax, dword [edx]
mov edx, dword [esp + 0x30]
push eax
push ecx
mov eax, dword [edx]
push eax
push esi
call fcn.17df5ce0
add esp, 0x20
xor ebx, ebx
mov bl, byte [0x17e8305c]
jmp 0x17dfac3c
jne 0x17dfac02
mov ecx, dword [esp + 0x74]
xor ebx, ebx
mov bl, byte [0x17e83060]
jmp 0x17dfac0e
mov ecx, dword [esp + 0x78]
xor ebx, ebx
mov bl, byte [0x17e83064]
mov eax, dword [esp + 0x30]
mov edx, dword [edi + 0x24]
push eax
push edx
lea eax, [esp + 0x30]
mov edx, dword [esp + 0x34]
push eax
nop
mov eax, dword [edx]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [edx]
push eax
push ecx
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx]
push edx
push esi
call fcn.17df1fa0
add esp, 0x20
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
mov eax, dword [ecx]
push eax
push esi
push ebx
push ebp
push edx
call fcn.17df13c0
mov ebx, dword [esp + 0x28]
lea eax, [esp + 0x28]
add esp, 0x14
mov cl, byte [0x17e830e8]
push ecx
push 0
push eax
call fcn.17df1a7c
lea ecx, [esp + 0x20]
add esp, 0xc
push 1
push 1
push ecx
call fcn.17df1a7c
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x20]
add esp, 0xc
mov cl, byte [0x17e830f4]
push ecx
push edx
push eax
call fcn.17df1a7c
lea eax, [esp + 0x20]
lea ecx, [esp + 0x5c]
add esp, 0xc
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [ecx + 4], edx
lea edx, [esp + 0x14]
mov dword [ecx + 8], eax
mov cl, byte [0x17e830fc]
push ecx
push 0
push edx
call fcn.17df1a7c
lea ecx, [esp + 0x20]
add esp, 0xc
push ecx
call fcn.17df1afd
add esp, 4
mov ecx, dword [edi + 0x3c]
test ecx, ecx
jne 0x17dfacff
test ebp, ebp
jne 0x17dfacff
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [edx]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
push edx
call fcn.17df18c4
add esp, 0x10
jmp 0x17dfad20
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x20]
mov eax, dword [ecx]
mov ecx, dword [edx]
lea edx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x38]
push ecx
push eax
push ebp
push edx
call fcn.17df16d0
add esp, 0x14
lea eax, [esp + 0x14]
add esi, 0x1c
push eax
inc ebp
call fcn.17df1afd
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x1c]
add esp, 4
mov ecx, dword [edi + 0x20]
sub eax, ecx
push eax
push edx
push ecx
call fcn.17dfaed0
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x5c]
add esp, 0xc
add ecx, eax
mov al, byte [0x17e830fc]
nop
mov dword [esp + 0x14], ecx
push eax
sub ecx, ebx
shr ecx, 3
push ecx
push edx
call fcn.17df1a7c
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x38]
add esp, 0xc
add eax, 4
add ecx, 4
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], eax
mov eax, dword [edi]
add eax, 2
cmp eax, ebp
ja 0x17dfab5f
mov eax, dword [0x17e831b8]
mov ecx, dword [esp + 0x80]
cmp dword [ecx], eax
jne 0x17dfae1b
mov eax, dword [str._r_nVer_4.30.62.01_r_n]
mov ebx, dword [0x17e90884]
mov dword [esp + 0x3c], eax
mov ebp, dword [0x17e90888]
mov dword [esp + 0x40], ebx
mov eax, dword [0x17e9088c]
mov bx, word [0x17e90890]
mov dword [esp + 0x44], ebp
mov dword [esp + 0x48], eax
mov ecx, str._r_nVer_4.30.62.01_r_n
mov word [esp + 0x4c], bx
lea edx, [esp + 0x3c]
mov cl, byte [ecx + 0x12]
mov eax, edx
mov byte [edx + 0x12], cl
mov esi, dword [esp + 0x18]
inc esi
mov ecx, 0x13
mov dword [esp + 0x18], esi
mov dl, byte [eax]
mov esi, dword [esp + 0x18]
inc eax
nop
mov byte [esi], dl
mov esi, dword [esp + 0x18]
inc esi
dec ecx
mov dword [esp + 0x18], esi
jne 0x17dfadf1
mov eax, dword [esp + 0x14]
lea ecx, [esi - 1]
add eax, 0x98
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
mov cl, 0x20
xor eax, eax
mov al, byte [esp + 0x1c]
mov edx, dword [esp + 0x14]
add eax, edx
cdq
xor eax, edx
sub eax, edx
and eax, 0x1f
xor eax, edx
sub eax, edx
xor edx, edx
sub cl, al
mov ebx, dword [esp + 0x18]
mov al, cl
shr al, 3
mov dl, al
add edx, 4
add ebx, edx
mov dword [esp + 0x18], ebx
inc ebx
xor eax, eax
mov dword [esp + 0x18], ebx
mov al, cl
mov byte [ebx], 0
mov ebx, dword [esp + 0x18]
add eax, 0x30
inc ebx
mov dword [esp + 0x18], ebx
mov byte [ebx], 0
mov edx, dword [esp + 0x14]
add edx, eax
xor eax, eax
mov al, byte [esp + 0x1c]
mov dword [esp + 0x14], edx
add eax, edx
mov ecx, dword [esp + 0x90]
cdq
and edx, 7
push 0x18
add eax, edx
lea edx, [esp + 0x60]
sar eax, 3
mov dword [ecx], eax
sub eax, 2
push eax
push edx
call fcn.17df1a7c
add esp, 0xc
mov ecx, dword [edi + 0x38]
inc ecx
mov eax, dword [edi + 0x30]
mov dword [edi + 0x38], ecx
test eax, eax
je 0x17dfaec3
mov ecx, dword [esp + 0x90]
mov edx, dword [edi + 8]
mov eax, dword [ecx]
push eax
push edx
call fcn.17df1130
add esp, 8
mov eax, dword [section..rdata]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x58
ret