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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov ebx, ecx
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x415dc0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
jle 0x413237
lea eax, [ecx - 1]
mov dword [ebx + 0x7c], eax
cmp ecx, 1
mov ecx, eax
je 0x4139fc
mov eax, dword [ebx + 0x78]
test eax, eax
jle 0x41324d
lea edx, [eax - 1]
mov dword [ebx + 0x78], edx
cmp eax, 1
je 0x413a03
mov esi, dword [ebp + 8]
test esi, esi
je 0x413715
lea eax, [ebx + 0x24]
mov dword [ebp - 0x4c], eax
lea eax, [ebx + 0x34]
mov dword [ebp - 0x50], eax
lea eax, [ebx + 4]
mov dword [ebp - 0x34], eax
xor edx, edx
mov dword [ebp - 0x2c], ebx
nop
mov edi, dword [esi + 4]
lea ecx, [edi - 1]
cmp ecx, 0x14
ja case.default.0x413284
mov eax, edx
mov dword [ebp - 0x24], esi
jmp dword [ecx*4 + 0x413a44]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], edx
mov eax, dword [ebx]
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 4]
mov edi, eax
sar edi, 2
test eax, eax
je 0x41353e
js 0x413a0a
mov dword [ebp - 0x10], 0xffffffff
cmp eax, 0xffd
jb 0x41350c
add eax, 0x23
push eax
call fcn.0042e415
add esp, 4
lea esi, [eax + 0x23]
and esi, 0xffffffe0
mov dword [esi - 4], eax
jmp 0x413517
mov edx, dword [ebx + 0x60]
mov eax, dword [ebx]
test edx, 0x100
jne 0x413309
cmp eax, dword [ebx + 0x4c]
je 0x413607
cmp byte [eax - 1], 0xa
jmp 0x41331d
mov eax, dword [ebx]
cmp eax, dword [ebx + 0x50]
je 0x413602
cmp byte [eax], 0xa
setne dl
test dl, 1
je 0x413706
jmp 0x41376a
mov ecx, dword [ebx + 0x60]
mov eax, dword [ebx]
mov edx, dword [ebx + 0x50]
test ecx, 0x100
jne 0x4135d8
cmp eax, dword [ebx + 0x4c]
jne 0x4135d8
cmp eax, edx
je 0x41366e
test cl, 4
jne 0x41368b
movzx eax, byte [eax]
jmp 0x41367f
mov ecx, dword [ebx]
mov al, 1
cmp ecx, dword [ebx + 0x50]
je case.0x413284.12
mov esi, edx
mov dl, byte [ecx]
cmp dl, 0xa
je case.0x413284.12
cmp dl, 0xd
mov edx, esi
mov esi, dword [ebp - 0x24]
je case.0x413284.12
add ecx, 1
mov dword [ebx], ecx
test dl, 1
je 0x413706
jmp 0x41376a
mov edi, edx
mov eax, dword [ebx + 0x5c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebx + 0x70]
mov edx, dword [esi + 0x1c]
mov esi, dword [esi + 0x18]
add esi, edx
mov eax, dword [ebx]
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x50]
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0x20]
push ecx
push esi
push edx
push ebx
mov ebx, dword [ebp - 0x2c]
push eax
call fcn.00413c70
add esp, 0x18
cmp eax, dword [ebx]
je 0x413848
mov dword [ebx], eax
mov edx, edi
jmp 0x4136fe
mov eax, dword [ebx]
cmp eax, dword [ebx + 0x50]
je 0x413618
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push esi
call fcn.00413d80
mov edx, eax
xor dl, 1
test dl, 1
je 0x413706
jmp 0x41376a
mov edi, edx
mov eax, dword [esi + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebx + 0x10]
cmp dword [esi + 0x14], ecx
jae 0x4134fc
nop
nop
nop
nop
nop
add ecx, 0xffffffff
mov eax, dword [ebx + 4]
mov edx, ecx
mov esi, 0xfffffffe
rol esi, cl
shr edx, 5
and dword [eax + edx*4], esi
mov esi, dword [ebp - 0x24]
cmp dword [esi + 0x14], ecx
jb 0x413430
jmp 0x4134fc
mov eax, dword [esi + 0x14]
cmp byte [ebx + 0x65], 0
mov ecx, dword [eax + 0x14]
jne 0x413466
test ecx, ecx
je case.0x413284.1
mov dword [ebp - 0x28], edx
mov edx, dword [ebx + 4]
mov esi, ecx
mov edi, 1
shl edi, cl
shr esi, 5
or dword [edx + esi*4], edi
mov esi, dword [ebp - 0x24]
mov eax, dword [eax + 0x14]
mov ecx, dword [ebx]
mov edx, dword [ebx + 0x14]
mov dword [edx + eax*8 + 4], ecx
mov edx, dword [ebp - 0x28]
test dl, 1
je 0x413706
jmp 0x41376a
mov edi, edx
mov edx, dword [esi + 0x14]
mov eax, dword [ebx + 4]
mov ecx, edx
shr ecx, 5
mov eax, dword [eax + ecx*4]
bt eax, edx
jae 0x4134fc
mov eax, dword [ebx]
mov esi, dword [ebx + 0x14]
mov ecx, dword [esi + edx*8]
mov edx, dword [esi + edx*8 + 4]
cmp ecx, edx
je 0x413665
mov esi, dword [ebx + 0x50]
mov dword [ebp - 0x20], esi
mov esi, dword [ebx + 0x5c]
mov ebx, dword [ebp - 0x2c]
mov ebx, dword [ebx + 0x70]
mov dword [ebp - 0x10], 0xffffffff
push esi
push ebx
mov ebx, dword [ebp - 0x2c]
push edx
push ecx
push dword [ebp - 0x20]
push eax
call fcn.00413c70
add esp, 0x18
cmp eax, dword [ebx]
mov edx, edi
jne 0x413667
jmp 0x413848
mov edx, edi
test dl, 1
je 0x413706
jmp 0x41376a
push eax
call fcn.0042e415
add esp, 4
mov esi, eax
mov dword [ebp - 0x44], esi
mov dword [ebp - 0x40], esi
lea eax, [esi + edi*4]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebx + 4]
mov edi, dword [ebx + 8]
sub edi, eax
push edi
push eax
push esi
call fcn.00433bb0
add esp, 0xc
add edi, esi
mov dword [ebp - 0x40], edi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x10], 0
mov ecx, ebx
push eax
call fcn.004131f0
cmp dword [ebp - 0x20], 0xb
setne cl
cmp cl, al
je 0x4135c8
mov eax, dword [ebp - 0x48]
mov ebx, dword [ebp - 0x2c]
mov dword [ebx], eax
mov dl, 1
lea eax, [ebp - 0x48]
cmp ebx, eax
je 0x4136c0
mov esi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
sub edx, esi
mov dword [ebp - 0x20], edx
sar edx, 2
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 0xc]
sub ecx, eax
sar ecx, 2
cmp ecx, edx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x30], edx
jae 0x413628
mov ecx, dword [ebp - 0x34]
push edx
call fcn.00414fa0
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push esi
call fcn.00433bb0
add esp, 0xc
mov eax, dword [ebp - 0x30]
lea esi, [esi + eax*4]
mov ebx, dword [ebp - 0x2c]
jmp 0x4136b5
mov ebx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebx], eax
mov edx, dword [ebp - 0x28]
jmp 0x4136c0
cmp eax, edx
je 0x413676
movzx ecx, byte [eax - 1]
cmp byte [ecx + 0x4530dc], 0
setne cl
movzx eax, byte [eax]
cmp byte [eax + 0x4530dc], 0
setne al
xor al, cl
jmp 0x41368d
mov dl, byte [ebx + 0x60]
shr dl, 1
and dl, 1
test dl, 1
je 0x413706
jmp 0x41376a
mov dl, 1
test dl, 1
je 0x413706
jmp 0x41376a
mov ecx, dword [ebx + 8]
sub ecx, eax
mov edi, ecx
sar edi, 2
mov esi, edx
sub esi, edi
jbe 0x4136a0
push ecx
push dword [ebp - 0x28]
push eax
call fcn.00433bb0
add esp, 0xc
mov eax, dword [ebp - 0x28]
lea eax, [eax + edi*4]
mov edi, dword [ebx + 8]
lea ecx, [esi*4]
push ecx
push eax
push edi
call fcn.00433bb0
add esp, 0xc
lea esi, [edi + esi*4]
jmp 0x4136b5
mov edx, edi
mov dword [ebx], eax
jmp 0x4136fe
test cl, 0xc
sete al
jmp 0x41368d
test cl, 8
jne 0x41368b
movzx eax, byte [eax - 1]
cmp byte [eax + 0x4530dc], 0
setne al
jmp 0x41368d
xor eax, eax
test byte [esi + 8], 1
sete dl
xor dl, al
test dl, 1
je 0x413706
jmp 0x41376a
mov ecx, dword [ebp - 0x30]
lea esi, [eax + ecx*4]
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push eax
call fcn.00433bb0
add esp, 0xc
mov dword [ebx + 8], esi
mov eax, dword [ebp - 0x38]
mov dword [ebx + 0x10], eax
mov dl, 1
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x4136fe
mov esi, edx
mov eax, dword [ebp - 0x3c]
sub eax, ecx
cmp eax, 0x1000
jb 0x4136eb
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x413a24
add eax, 0x23
mov ecx, edx
push eax
push ecx
call fcn.0042e44a
add esp, 8
mov dword [ebp - 0x44], 0
mov edx, esi
mov esi, dword [ebp - 0x24]
test dl, 1
jne 0x41376a
mov esi, dword [esi + 0xc]
mov eax, edx
test esi, esi
jne 0x413270
jmp case.0x413284.12
xor eax, eax
test ecx, ecx
jg 0x413773
jmp 0x413779
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push esi
mov esi, edx
call fcn.00413f90
jmp 0x41374c
mov eax, dword [esi + 8]
and eax, 2
shr eax, 1
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push 0
push eax
push esi
mov esi, edx
call fcn.004147a0
mov ecx, esi
movzx ecx, cl
test al, al
mov eax, 1
cmovne eax, ecx
jmp case.0x413284.12
mov eax, dword [esi + 0x14]
cmp dword [eax + 0x24], 0
je 0x41384f
mov eax, edx
mov ecx, dword [ebx + 0x7c]
test ecx, ecx
jle 0x413779
add ecx, 1
mov dword [ebx + 0x7c], ecx
test al, 1
sete al
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret 4
movzx eax, word [ebx + 0x60]
test eax, 0x2020
je 0x4137a8
mov eax, dword [ebx + 0x4c]
cmp eax, dword [ebx]
je 0x413848
cmp byte [ebx + 0x74], 0
je 0x4137b7
mov ecx, dword [ebx]
mov al, 1
cmp ecx, dword [ebx + 0x50]
jne case.0x413284.12
cmp byte [ebx + 0x64], 0
mov dword [ebp - 0x28], edx
je 0x41387a
mov edx, dword [ebx + 0x68]
test edx, edx
je 0x4139f4
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x30], eax
mov ebx, dword [ebx + 0x34]
xor ecx, ecx
jmp 0x4137f3
add ecx, 1
cmp edx, ecx
je 0x41391c
mov esi, ecx
shr esi, 5
mov eax, dword [ebp - 0x24]
mov edi, dword [eax + esi*4]
mov eax, 1
shl eax, cl
bt edi, ecx
jae 0x4137e8
mov edi, dword [ebp - 0x20]
test dword [edi + esi*4], eax
je 0x4137e8
mov esi, dword [ebx + ecx*8]
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + ecx*8]
cmp esi, eax
jne 0x41382b
mov esi, dword [ebx + ecx*8 + 4]
mov eax, dword [edi + ecx*8 + 4]
cmp esi, eax
je 0x4137e8
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [ebx + 0x4c]
sub esi, ecx
sub eax, ecx
cmp esi, eax
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x24]
jge 0x41376a
jmp 0x413880
mov al, 1
jmp case.0x413284.12
mov ecx, dword [ebx + 0x40]
mov edi, edx
mov edx, dword [eax + 8]
mov esi, dword [eax + 0x20]
mov esi, dword [ecx + esi*8]
and edx, 2
shr edx, 1
mov dword [ebp - 0x10], 0xffffffff
mov ecx, ebx
push esi
push edx
push eax
call fcn.004147a0
mov ecx, edi
jmp 0x41374e
mov ecx, dword [ebx + 4]
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx]
mov edi, dword [ebx + 8]
mov dword [ebx + 0x20], eax
sub edi, ecx
mov eax, ebx
mov ebx, edi
sar ebx, 2
mov eax, dword [eax + 0x2c]
sub eax, esi
sar eax, 2
cmp eax, ebx
mov eax, esi
mov esi, ecx
jae 0x4138c8
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 0x4c]
push ebx
call fcn.00414fa0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
push edi
push esi
mov esi, eax
push eax
call fcn.00433bb0
add esp, 0xc
lea ebx, [esi + ebx*4]
jmp 0x413937
mov dword [ebp - 0x20], esi
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx + 0x28]
sub esi, eax
mov dword [ebp - 0x24], eax
mov eax, esi
sar eax, 2
mov edx, ebx
mov ecx, eax
mov dword [ebp - 0x30], eax
sub edx, eax
mov ecx, dword [ebp - 0x24]
jbe 0x413927
push esi
mov esi, dword [ebp - 0x20]
push esi
push ecx
mov edi, edx
call fcn.00433bb0
add esp, 0xc
mov eax, dword [ebp - 0x30]
lea eax, [esi + eax*4]
mov ecx, dword [ebp - 0x2c]
mov esi, dword [ecx + 0x28]
lea ecx, [edi*4]
push ecx
push eax
push esi
call fcn.00433bb0
add esp, 0xc
lea ebx, [esi + edi*4]
jmp 0x413937
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x2c]
jmp case.0x413284.12
lea ebx, [ecx + ebx*4]
push edi
push dword [ebp - 0x20]
push ecx
call fcn.00433bb0
add esp, 0xc
mov esi, dword [ebp - 0x2c]
mov dword [esi + 0x28], ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x30], eax
mov ebx, dword [esi + 0x18]
mov dword [ebp - 0x24], ecx
sub ebx, ecx
mov edi, ebx
sar edi, 3
mov ecx, dword [esi + 0x3c]
mov edx, dword [esi + 0x34]
sub ecx, edx
sar ecx, 3
cmp ecx, edi
jae 0x413988
mov dword [ebp - 0x10], 0xffffffff
mov esi, dword [ebp - 0x50]
mov ecx, esi
push edi
call fcn.00415b80
mov esi, dword [esi]
push ebx
push dword [ebp - 0x24]
push esi
call fcn.00433bb0
add esp, 0xc
lea ebx, [esi + edi*8]
jmp 0x4139e8
mov dword [ebp - 0x30], ebx
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x20], edx
sub eax, edx
mov edx, eax
sar edx, 3
mov ebx, edi
mov ecx, edx
mov dword [ebp - 0x34], edx
sub ebx, edx
jbe 0x4139d3
push eax
mov edi, dword [ebp - 0x24]
push edi
push dword [ebp - 0x20]
call fcn.00433bb0
add esp, 0xc
mov eax, dword [ebp - 0x34]
lea eax, [edi + eax*8]
mov esi, dword [esi + 0x38]
lea ecx, [ebx*8]
push ecx
push eax
push esi
call fcn.00433bb0
add esp, 0xc
lea ebx, [esi + ebx*8]
jmp 0x4139e8
mov eax, dword [ebp - 0x20]
lea ebx, [eax + edi*8]
push dword [ebp - 0x30]
push dword [ebp - 0x24]
push eax
call fcn.00433bb0
add esp, 0xc
mov eax, dword [ebp - 0x2c]
mov dword [eax + 0x38], ebx
mov ebx, eax
mov byte [eax + 0x64], 1
mov eax, dword [ebp - 0x28]
jmp case.0x413284.12
push 0xc
call fcn.0042fd6f
push 0xb
call fcn.0042fd6f
mov dword [ebp - 0x10], 0xffffffff
call fcn.0040ebc0
mov dword [ebp - 0x10], 0xffffffff
push 0xd
call fcn.0042fd6f
call fcn.0043b0eb
nop
nop
nop
nop
nop
nop
nop
push ebp
sub esp, 0x18
add ebp, 0xc
lea ecx, [ebp - 0x48]
call fcn.004131a0
add esp, 0x18
pop ebp
ret