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

Disassembly:
push 0x58
mov eax, 0x598557
call fcn.0055d8e8
mov esi, ecx
mov eax, dword [esi + 0x7c]
mov ebx, 0xd8
sub eax, dword [esi + 0x78]
cdq
idiv ebx
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x48], ebx
cmp dword [esi + 0x84], eax
jb 0x41af2e
and dword [ecx], 0
mov eax, ecx
and dword [ecx + 4], 0
jmp 0x41b392
push 0x5e264d
lea ecx, [ebp - 0x30]
call fcn.00403e94
and dword [ebp - 4], 0
push 0x10000
call fcn.00431b64
mov ecx, dword [esi]
mov edi, eax
sub esp, 0x14
mov dword [ebp - 0x44], edi
lea eax, [esi + 8]
mov dword [ebp - 0x34], 8
mov dword [edi], ecx
mov cl, byte [esi + 4]
mov byte [edi + 4], cl
mov cl, byte [esi + 5]
mov byte [edi + 5], cl
mov cx, word [esi + 6]
mov word [edi + 6], cx
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
mov ebx, dword [ebp - 0x34]
add esp, 0x1c
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x24]
mov dword [edi + ebx], eax
mov dword [edi + ebx + 4], ecx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x2c]
mov dword [edi + ebx + 8], eax
xor eax, eax
mov dword [edi + ebx + 0xc], ecx
xor ecx, ecx
cmp dword [esi + 0x40], 0x10
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
jne 0x41afd2
lea ecx, [esi + 0x30]
cmp dword [ecx + 0x14], 0x10
jb 0x41afc2
mov ecx, dword [ecx]
push ecx
lea edx, [ebp - 0x18]
call fcn.00417556
mov eax, dword [ebp - 0x18]
pop ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + ebx + 0x10], eax
lea edx, [esi + 0x48]
mov dword [edi + ebx + 0x14], ecx
lea ecx, [ebp - 0x60]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push 0
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ax, word [ebp - 0x20]
sub esp, 0x18
mov word [edi + ebx + 0x18], ax
mov ecx, esp
lea eax, [ebp - 0x30]
add ebx, 0x1a
mov dword [ebp - 0x34], ebx
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
add esp, 0x1c
lea edx, [esi + 0x60]
lea ecx, [ebp - 0x60]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
xor ebx, ebx
lea ecx, [ebp - 0x60]
push ebx
push 1
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
xor eax, eax
mov ecx, dword [esi + 0x84]
mov word [esi + 6], ax
add esp, 0x1c
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
cdq
idiv dword [ebp - 0x48]
mov dword [ebp - 0x3c], ecx
cmp ecx, eax
jae 0x41b350
imul eax, ecx, 0xd8
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x78]
mov ecx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x14], ebx
mov ecx, dword [ecx + eax + 0x30]
mov eax, dword [edi + eax + 0x34]
mov edi, dword [ebp - 0x44]
mov dword [edi + edx], ecx
mov ecx, dword [ebp - 0x38]
mov dword [edi + edx + 4], eax
mov eax, dword [esi + 0x78]
mov edi, dword [ebp - 0x38]
mov ecx, dword [ecx + eax + 0x38]
mov eax, dword [edi + eax + 0x3c]
mov edi, dword [ebp - 0x44]
mov dword [edi + edx + 8], ecx
mov ecx, ebx
mov dword [edi + edx + 0xc], eax
add edx, 0x10
mov edi, dword [esi + 0x78]
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x18], ecx
cmp dword [eax + edi + 0x50], 0x10
mov edi, dword [ebp - 0x44]
jne 0x41b118
mov ecx, dword [esi + 0x78]
add ecx, 0x40
add ecx, eax
cmp dword [ecx + 0x14], 0x10
jb 0x41b105
mov ecx, dword [ecx]
push ecx
lea edx, [ebp - 0x18]
call fcn.00417556
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
pop ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + edx], ecx
mov ecx, dword [ebp - 0x14]
mov dword [edi + edx + 4], ecx
add edx, 8
mov dword [ebp - 0x34], edx
lea ecx, [ebp - 0x60]
mov edx, dword [esi + 0x78]
add edx, eax
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 0x60]
add esp, 0x1c
add edx, 0x58
add edx, dword [ebp - 0x38]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 0x60]
add esp, 0x1c
add edx, 0x70
add edx, dword [ebp - 0x38]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00404f00
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 0x60]
add esp, 0x1c
add edx, 0x88
add edx, dword [ebp - 0x38]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 0x60]
add esp, 0x1c
add edx, 0xa0
add edx, dword [ebp - 0x38]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
mov ecx, edi
push eax
call fcn.00404f00
mov edx, dword [esi + 0x78]
lea ecx, [ebp - 0x60]
add esp, 0x1c
add edx, 0xb8
add edx, dword [ebp - 0x38]
call fcn.004178b9
push eax
lea ecx, [ebp - 0x30]
call fcn.00407163
push ebx
push 1
lea ecx, [ebp - 0x60]
call fcn.0040412f
mov ecx, dword [ebp - 0x34]
sub esp, 0x18
mov ax, word [ebp - 0x20]
mov word [edi + ecx], ax
add ecx, 2
mov dword [ebp - 0x34], ecx
lea eax, [ebp - 0x30]
mov ecx, esp
push eax
call fcn.00403e6e
lea eax, [ebp - 0x34]
push eax
mov ecx, edi
call fcn.00404f00
mov ecx, dword [ebp - 0x34]
add esp, 0x1c
inc word [esi + 6]
inc dword [esi + 0x84]
mov dword [ebp - 0x34], ecx
cmp ecx, 0xf800
jg 0x41b353
mov eax, dword [esi + 0x7c]
sub eax, dword [esi + 0x78]
cdq
idiv dword [ebp - 0x48]
inc dword [ebp - 0x3c]
add dword [ebp - 0x38], 0xd8
cmp dword [ebp - 0x3c], eax
jb 0x41b09d
jmp 0x41b353
mov ecx, dword [ebp - 0x34]
lea eax, [ecx - 4]
mov dword [esi], eax
lea ecx, [edi + 6]
mov dword [edi], eax
mov ax, word [esi + 6]
mov word [ecx], ax
mov edx, dword [esi]
lea eax, [edx + 0x330acf3]
add edx, 0xfffffffe
push eax
call fcn.0043103a
mov eax, dword [esi]
lea ecx, [ebp - 0x30]
mov esi, dword [ebp - 0x64]
add esp, 4
add eax, 4
push ebx
push 1
mov dword [esi], edi
mov dword [esi + 4], eax
call fcn.0040412f
mov eax, esi
call fcn.0055d897
ret 4