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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x459429
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x30]
push ebp
xor ebp, ebp
mov ecx, dword [ebx + 4]
push esi
cmp ecx, ebp
push edi
jne 0x417ccf
mov dword [esp + 0x20], ebp
jmp 0x417cdb
mov eax, dword [ebx + 8]
sub eax, ecx
sar eax, 5
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x14], ebp
cmp eax, ebp
mov dword [esp + 0x18], ebp
jle 0x417f9f
mov edi, dword [esp + 0x40]
mov dword [esp + 0x1c], ebp
push 0xb0
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
mov esi, eax
add esp, 4
mov dword [esp + 0x28], esi
cmp esi, ebp
mov dword [esp + 0x34], ebp
je 0x417dd2
mov al, byte [esp + 0x3c]
push ebp
mov ecx, esi
mov byte [esi], al
call fcn.00406d30
mov dl, byte [esp + 0x3c]
lea ecx, [esi + 0x10]
push ebp
mov byte [esp + 0x38], 1
mov byte [ecx], dl
call fcn.00406d30
lea eax, [esp + 0x40]
lea ecx, [esi + 0x20]
push eax
mov byte [esp + 0x38], 2
call fcn.0041a2f0
lea ecx, [esp + 0x13]
mov byte [esp + 0x34], 3
push ecx
lea ecx, [esi + 0x50]
call fcn.0041aa00
mov dword [esi + 0x30], ebp
mov dword [esi + 0x3c], ebp
mov dword [esi + 0x44], ebp
mov dword [esi + 0x94], ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x48], 1
mov dword [esi + 0x40], ebp
mov dword [esi + 0x4c], ebp
mov dword [esi + 0x64], ebp
mov dword [esi + 0x70], ebp
mov dword [esi + 0x6c], ebp
mov dword [esi + 0x7c], ebp
mov dword [esi + 0x68], 0x65
mov dword [esi + 0x88], ebp
mov dword [esi + 0x84], ebp
mov dword [esi + 0x80], ebp
mov dword [esi + 0x78], ebp
mov dword [esi + 0x74], ebp
mov dword [esi + 0x90], ebp
mov dword [esi + 0x8c], ebp
mov dword [esi + 0xa4], ebp
mov dword [esi + 0xa0], ebp
mov dword [esi + 0x9c], ebp
mov dword [esi + 0x98], ebp
mov dword [esi + 0xac], ebp
jmp 0x417dd4
xor esi, esi
cmp esi, ebp
mov dword [esp + 0x34], 0xffffffff
mov dword [esp + 0x14], esi
je 0x417f9f
mov edx, dword [esp + 0x18]
push esi
push edx
mov ecx, ebx
call fcn.0041adb0
sub esp, 0x10
mov ecx, esp
mov dword [esp + 0x3c], esp
push eax
call fcn.0041a310
mov ecx, dword [esp + 0x58]
call fcn.004137d0
mov eax, dword [0x45c64c]
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x1c]
push eax
push ebp
lea eax, [edx + ecx + 0x10]
mov ecx, dword [esp + 0x1c]
push eax
call fcn.0041af20
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0xc]
sub ecx, esi
sar ecx, 2
cmp ecx, 1
jae 0x417eef
mov ecx, edi
call fcn.0041adf0
cmp eax, 1
jbe 0x417e54
mov ecx, edi
call fcn.0041adf0
mov ebx, eax
jmp 0x417e59
mov ebx, 1
mov ecx, edi
call fcn.0041adf0
add eax, ebx
mov dword [esp + 0x28], eax
jns 0x417e6a
xor eax, eax
lea edx, [eax*4]
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov ebx, eax
mov eax, dword [edi + 4]
mov ecx, edi
push ebx
push esi
push eax
call fcn.0041dbc0
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], eax
push ecx
push 1
push eax
mov ecx, edi
call fcn.0041dbf0
mov edx, dword [esp + 0x24]
mov eax, dword [edi + 8]
add edx, 4
mov ecx, edi
push edx
push eax
push esi
call fcn.0041dbc0
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push ecx
push edx
mov ecx, edi
call fcn.0041bed0
mov eax, dword [edi + 4]
push eax
call fcn.0044bf22
mov ecx, dword [esp + 0x2c]
add esp, 4
lea edx, [ebx + ecx*4]
mov ecx, edi
mov dword [edi + 0xc], edx
call fcn.0041adf0
lea eax, [ebx + eax*4 + 4]
mov dword [edi + 4], ebx
mov ebx, dword [esp + 0x3c]
mov dword [edi + 8], eax
jmp 0x417f7f
mov eax, esi
sub eax, esi
sar eax, 2
cmp eax, 1
jae 0x417f3d
lea ecx, [esi + 4]
push ecx
push esi
push esi
mov ecx, edi
call fcn.0041dbc0
mov eax, dword [edi + 8]
lea edx, [esp + 0x14]
mov ecx, eax
push edx
sub ecx, esi
mov edx, 1
sar ecx, 2
sub edx, ecx
mov ecx, edi
push edx
push eax
call fcn.0041dbf0
mov eax, dword [edi + 8]
cmp esi, eax
je 0x417f7b
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x417f2e
jmp 0x417f7b
lea eax, [esi - 4]
push esi
push esi
push eax
mov ecx, edi
mov dword [esp + 0x34], eax
call fcn.0041dbc0
mov ecx, dword [edi + 8]
lea eax, [ecx - 4]
cmp esi, eax
je 0x417f67
mov edx, dword [eax - 4]
sub eax, 4
sub ecx, 4
cmp eax, esi
mov dword [ecx], edx
jne 0x417f58
lea eax, [esi + 4]
cmp esi, eax
je 0x417f7b
mov ecx, dword [esp + 0x14]
mov dword [esi], ecx
add esi, 4
cmp esi, eax
jne 0x417f6e
add dword [edi + 8], 4
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc eax
add edx, 0x20
cmp eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
jl 0x417cf7
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x28
ret