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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xc0
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp + 0x28]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x28], edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [esp], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 8], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov ecx, dword [ebp + 0x20]
mov eax, 6
test ecx, ecx
js 0x413842
mov eax, ecx
mov ecx, edi
or ecx, esi
je 0x413852
mov ecx, eax
and ecx, 0x400
jmp 0x413866
mov edx, eax
and edx, 0x400
xor ecx, ecx
cmp dword [ebp + 0x14], 0
je 0x41386c
test edx, edx
jne 0x41386c
mov edx, ecx
mov cx, 8
test eax, 0x10000
mov dword [esp + 0x34], edx
mov dword [esp + 0xc], edi
jne 0x413884
movzx ecx, cx
or ecx, 0x800
mov dword [esp + 0x88], ecx
mov ecx, eax
and ecx, 0xf
mov dword [esp + 0x14], ecx
sete dh
cmp dword [esp + 0x34], 0
setne cl
mov edi, dword [ebx + 0x48]
mov dword [esp + 4], edi
test edi, edi
je 0x41393d
cmp dword [ebx + 0x14], 2
jne 0x41393d
cmp dword [ebp + 0x14], 0
sete dl
cmp dword [ebp + 0x10], 0
setne ch
cmp dword [ebp + 0xc], 0
je 0x41393d
or ch, dl
je 0x41393d
cmp word [ebp + 0x1c], 0
setne dl
cmp dword [ebp + 0x18], 0
sete ch
test ch, dl
jne 0x41393d
cmp dword [esp + 0x14], 0xb
jae 0x41393d
mov ch, dh
mov edx, dword [esp + 4]
cmp dword [edx + 0x34], 0
mov edx, dword [ebx + 0x10]
je 0x413909
cmp edx, 0xffffffff
mov edi, esi
jne 0x413922
mov dword [ebx + 0x1c], 2
jmp 0x413944
mov edi, esi
test esi, esi
jne 0x413917
cmp edx, 0xffff
jne 0x413922
mov edx, dword [esp + 4]
mov dword [edx + 0x34], 1
mov edx, dword [esp + 0xc]
or edx, edi
je 0x41394e
mov ebx, eax
not ebx
mov edx, ebx
or edx, 0x400
cmp edx, ebx
mov ebx, dword [ebp + 8]
jne 0x41394e
mov dword [ebx + 0x1c], 0x18
xor eax, eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, dword [ebp + 0xc]
cmp byte [edx], 0x2f
je 0x4139d0
mov dl, ch
or dl, cl
mov ecx, eax
xor ecx, 0xfffffbff
or eax, 0x400
test eax, ecx
mov byte [esp + 0x1c], dl
je 0x41397b
mov eax, dword [ebp + 0x2c]
mov dword [esp + 0x8c], eax
jmp 0x4139be
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push 0
call fcn.00402e90
add esp, 0xc
mov dword [esp + 0x8c], eax
xor edi, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 0
mov eax, 0
cmp esi, 4
setb cl
jb 0x4139b2
mov eax, dword [esp + 0x14]
or byte [esp + 0x1c], cl
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], eax
push dword [ebp + 0xc]
call fcn.0041e620
add esp, 4
cmp eax, 0x10000
jb 0x4139dc
mov dword [ebx + 0x1c], 0x19
jmp 0x413944
mov dword [esp + 0x30], eax
movzx eax, word [ebp + 0x1c]
mov dword [esp + 0x84], eax
mov dword [esp + 0x44], 0
mov esi, 0xfffffffe
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
or ecx, eax
mov ecx, 0
je 0x413a28
mov ecx, eax
mov edx, 0xfffffffe
or ecx, edx
mov edx, eax
and edx, 0xfffffffe
add ecx, edx
inc ecx
and ecx, dword [ebx]
mov edx, 0xfffffffe
add edx, eax
inc edx
sub eax, ecx
and eax, edx
mov ecx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 4]
mov edx, dword [eax + 4]
xor ecx, ecx
mov dword [esp + 0x18], edx
add edx, 0x2e
setb cl
mov ebx, edx
mov eax, dword [esp + 0x30]
xor ebx, eax
and edx, eax
mov eax, edx
shr eax, 0x1f
add edx, edx
add edx, ebx
adc eax, ecx
add edx, 0x1c
adc eax, 0
mov ecx, edx
mov ebx, dword [esp + 0x84]
xor ecx, ebx
and edx, ebx
add edx, edx
add edx, ecx
adc eax, 0
cmp esi, edx
sbb dword [esp + 0x44], eax
jae 0x413a85
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0xf
jmp 0x413944
mov eax, dword [esp + 4]
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x413afc
mov ecx, dword [esp + 0x30]
mov eax, ecx
shr eax, 0x1f
lea ebx, [ecx + ecx]
xor edx, edx
mov ecx, dword [esp + 0x84]
add ecx, dword [ebp + 0x38]
setb dl
add ecx, ebx
adc edx, eax
add ecx, dword [esp + 0x40]
adc edx, 0
add ecx, dword [esp + 0x18]
adc edx, 0
mov eax, dword [ebp + 8]
add ecx, dword [eax]
adc edx, dword [eax + 4]
add ecx, 0x62
adc edx, 0
mov ebx, ecx
mov esi, dword [ebp + 0x40]
and ebx, esi
mov eax, ebx
shr eax, 0x1f
add ebx, ebx
xor ecx, esi
add ecx, ebx
adc eax, edx
add ecx, 0x10
adc eax, 0xffffffff
xor ecx, ecx
cmp eax, 0xffffffff
je 0x413afc
mov eax, dword [esp + 4]
mov dword [eax + 0x34], 1
mov ecx, 1
mov edx, dword [esp + 0x30]
test edx, edx
je 0x413b36
mov dword [esp + 0x44], 0
mov eax, dword [ebp + 0xc]
cmp byte [edx + eax - 1], 0x2f
mov ebx, dword [ebp + 8]
jne 0x413b41
cmp dword [ebp + 0x14], 0
jne 0x41393d
mov dword [esp + 0x44], 0x10
or dword [esp + 0xc], edi
je 0x413b41
jmp 0x41393d
mov dword [esp + 0x44], 0
mov ebx, dword [ebp + 8]
test ecx, ecx
je 0x413b4a
mov ecx, 0x1c
mov eax, dword [esp + 0x84]
add eax, edx
mov edx, dword [esp + 0x18]
add edx, eax
lea eax, [ecx + edx]
add eax, 0x2e
mov edi, dword [esp + 4]
mov ecx, dword [edi + 8]
cmp ecx, eax
jae 0x413bb3
mov esi, 1
test ecx, ecx
je 0x413b8f
mov esi, ecx
jmp 0x413b8f
mov ecx, esi
or ecx, 2
mov edx, esi
and edx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffffffd
imul esi, edx
add esi, ecx
cmp esi, eax
jb 0x413b77
push esi
mov edi, dword [esp + 8]
push dword [edi + 0xc]
push dword [edi]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x413d15
mov dword [edi], eax
mov dword [edi + 8], esi
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
inc eax
cmp ecx, eax
mov edx, dword [ebp + 0x14]
jae 0x413c0f
mov esi, 1
test ecx, ecx
je 0x413be6
mov esi, ecx
jmp 0x413be6
mov ecx, esi
or ecx, 2
mov edx, esi
and edx, 2
imul ecx, edx
xor edx, 2
and esi, 0xfffffffd
imul esi, edx
add esi, ecx
cmp esi, eax
jb 0x413bce
push esi
mov edi, dword [esp + 8]
push dword [edi + 0x1c]
push dword [edi + 0x10]
push dword [ebx + 0x34]
call dword [ebx + 0x30]
add esp, 0x10
test eax, eax
je 0x413d15
mov dword [edi + 0x10], eax
mov dword [edi + 0x18], esi
mov edx, dword [ebp + 0x14]
test edx, edx
sete al
xor edi, edi
or al, byte [esp + 0x1c]
mov esi, dword [esp]
jne 0x413c39
push 0x4df40
push 1
push dword [ebx + 0x34]
call dword [ebx + 0x28]
add esp, 0xc
mov edi, eax
test eax, eax
je 0x413d15
mov ecx, ebx
mov edx, esi
mov ebx, dword [esp + 0x40]
push ebx
push dword [esp + 0xc]
call fcn.004143e0
add esp, 8
test eax, eax
je 0x413d21
mov dword [esp + 0xc], edi
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
add edi, ebx
adc ecx, 0
add esi, ebx
mov dword [esp], esi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], ecx
mov eax, dword [esp + 8]
adc eax, 0
mov dword [esp + 0x64], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov word [esp + 0x80], 0
cmp dword [esp + 0x34], 0
sete bl
and bl, byte [esp + 0x1c]
mov edx, ebx
xor dl, 1
movzx edx, dl
shl edx, 3
mov dword [esp + 0x34], edx
mov edx, dword [esp + 4]
cmp dword [edx + 0x34], 0
je 0x413d33
mov dword [esp + 8], eax
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x28]
mov edx, 0
sbb edx, dword [esp + 0x2c]
jae 0x413d5d
xor esi, esi
cmp eax, edi
mov eax, 0
sbb eax, ecx
jae 0x413d0b
lea esi, [esp + 0x20]
lea eax, [esp + 0x38]
lea edx, [esp + 0x28]
jmp 0x413d70
mov dword [ebx + 0x1c], 0x10
jmp 0x413944
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
jmp 0x413944
cmp dword [esp + 0x3c], 0
jne 0x4141f8
test eax, eax
jne 0x4141f8
mov dword [esp + 0x64], 0x4034b50
test bl, bl
jne 0x413ea1
mov dl, 0x14
jmp 0x413ea3
cmp eax, edi
mov edx, 0
sbb edx, ecx
jae 0x413d92
lea esi, [esp + 0x20]
xor eax, eax
xor edx, edx
lea ecx, [esp + 0xa0]
push esi
push eax
call fcn.00414480
add esp, 8
mov edi, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
lea esi, [esp + 0xa0]
jmp 0x413d96
xor eax, eax
xor esi, esi
mov edx, dword [ebp + 0x38]
add edx, eax
mov dword [esp + 0x64], 0x4034b50
test bl, bl
mov dword [esp + 4], esi
mov dword [esp + 0x18], eax
jne 0x413db3
mov bl, 0x14
jmp 0x413db5
xor ebx, ebx
mov byte [esp + 0x68], bl
mov byte [esp + 0x69], 0
movzx ebx, word [esp + 0x88]
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], bh
mov ebx, dword [esp + 0x34]
mov byte [esp + 0x6c], bl
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], bh
mov byte [esp + 0x80], dl
mov byte [esp + 0x81], dh
lea edx, [esp + 0x64]
push 0x1e
push edx
push ecx
push edi
mov esi, dword [ebp + 8]
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4141cc
mov ecx, esi
mov edi, dword [esp]
lea eax, [edi + edi]
and eax, 0x3c
xor edi, 0x1e
add edi, eax
mov esi, dword [esp + 8]
adc esi, 0
push ebx
push dword [ebp + 0xc]
push esi
push edi
push dword [ecx + 0x44]
call dword [ecx + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x413ff2
add edi, ebx
adc esi, 0
cmp dword [esp + 4], 0
je 0x413f71
lea eax, [esp + 0xa0]
mov ebx, dword [esp + 0x18]
push ebx
push eax
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4141a4
add edi, ebx
mov dword [esp], edi
adc esi, 0
jmp 0x413f7c
xor edx, edx
mov esi, dword [ebp + 8]
mov dword [esp + 8], eax
mov byte [esp + 0x68], dl
mov ebx, dword [esp + 0x88]
movzx edx, bx
mov byte [esp + 0x6a], bl
mov byte [esp + 0x6b], dh
mov edx, dword [esp + 0x34]
mov byte [esp + 0x6c], dl
mov dword [esp + 0x6d], 0
mov dword [esp + 0x71], 0
mov dword [esp + 0x75], 0
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
mov ebx, dword [esp + 0x30]
mov byte [esp + 0x7e], bl
mov byte [esp + 0x7f], bh
mov edx, dword [ebp + 0x38]
mov byte [esp + 0x80], dl
mov byte [esp + 0x81], dh
lea edx, [esp + 0x64]
push 0x1e
push edx
push ecx
push edi
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, 0x1e
jne 0x4141cc
mov eax, dword [esp]
add eax, 0x1e
mov edi, dword [esp + 8]
mov ecx, edi
adc ecx, 0
push ebx
push dword [ebp + 0xc]
push ecx
push eax
push dword [esi + 0x44]
call dword [esi + 0x3c]
add esp, 0x14
cmp eax, ebx
jne 0x4141bf
add ebx, dword [esp]
adc edi, 0
add ebx, 0x1e
adc edi, 0
mov dword [esp + 4], 0
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov eax, dword [ebp + 0x38]
mov esi, edi
jmp 0x413f7f
mov dword [esp], edi
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x38]
test eax, eax
je 0x413fac
push eax
push dword [ebp + 0x34]
push esi
mov ebx, dword [esp + 0xc]
push ebx
mov edi, dword [ebp + 8]
push dword [edi + 0x44]
call dword [edi + 0x3c]
mov ecx, dword [ebp + 0x38]
add esp, 0x14
cmp eax, ecx
jne 0x4141b3
add ebx, ecx
mov dword [esp], ebx
adc esi, 0
mov dword [esp + 8], esi
cmp byte [esp + 0x1c], 0
je 0x413ffe
mov esi, dword [ebp + 0x14]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x10]
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x413ff2
mov eax, dword [ebp + 0x14]
add dword [esp], eax
adc dword [esp + 8], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
jmp 0x4140a2
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
jmp 0x4141c3
cmp dword [ebp + 0x14], 0
je 0x4140a2
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [esp]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 8]
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x58], 0
push 0
push 0xfffffffffffffff1
push dword [esp + 0x1c]
call fcn.004128a0
add esp, 0xc
lea ecx, [esp + 0x48]
push eax
push ecx
push 0x4144f0
mov esi, dword [esp + 0x18]
push esi
call fcn.00412670
add esp, 0x10
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x9c], eax
lea eax, [esp + 0x9c]
push 4
push 0
push 0
push eax
push dword [ebp + 0x10]
push esi
call fcn.004043e0
add esp, 0x18
cmp eax, 1
jne 0x4141d8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x50]
mov dword [esp], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x34]
call dword [eax + 0x2c]
add esp, 8
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov esi, ecx
mov dword [esp + 0x14], eax
or ecx, eax
je 0x4142f0
mov dword [esp + 0x48], 0x8074b50
mov edx, dword [esp + 0x8c]
mov byte [esp + 0x4c], dl
mov byte [esp + 0x4d], dh
mov ecx, edx
shr ecx, 0x10
mov byte [esp + 0x4e], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x4f], cl
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
cmp dword [esp + 4], 0
je 0x4141f4
mov byte [esp + 0x50], cl
mov byte [esp + 0x51], ch
mov ebx, ecx
shr ebx, 0x10
mov byte [esp + 0x52], bl
mov ebx, edx
shr ebx, 0x10
shr ecx, 0x18
mov byte [esp + 0x53], cl
mov ecx, edx
shr ecx, 0x18
mov byte [esp + 0x54], dl
mov byte [esp + 0x55], dh
mov byte [esp + 0x56], bl
mov byte [esp + 0x57], cl
mov edx, esi
mov byte [esp + 0x58], dl
mov byte [esp + 0x59], dh
mov ecx, esi
shr ecx, 0x10
mov byte [esp + 0x5a], cl
mov ecx, esi
shr ecx, 0x18
mov byte [esp + 0x5b], cl
mov dword [esp + 0x40], 0x38
mov dword [esp + 0x94], 0x30
mov ecx, 0x28
mov dword [esp + 0xc], 0x18
mov dword [esp + 0x1c], 0x17
mov eax, dword [esp + 0x14]
mov edx, eax
mov byte [esp + 0x13], al
mov dword [esp + 0x98], 0x16
mov dword [esp + 0x90], 0x15
mov edi, 0x14
jmp 0x414254
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x13
jmp 0x413944
mov dword [edi + 0x1c], 0x13
jmp 0x413944
push dword [esp + 0xc]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0x13
jmp 0x413944
push dword [esp + 0xc]
mov esi, dword [ebp + 8]
push dword [esi + 0x34]
call dword [esi + 0x2c]
add esp, 8
mov dword [esi + 0x1c], 0xc
jmp 0x413944
test edx, edx
je 0x414207
mov eax, dword [ebp + 8]
mov dword [eax + 0x1c], 0x1d
jmp 0x413944
mov dword [esp + 0x50], ecx
mov dword [esp + 0x40], 0x18
mov dword [esp + 0x94], 0x10
mov ecx, 8
mov dword [esp + 0x1c], 0xf
mov dword [esp + 0x98], 0xe
mov edx, esi
mov byte [esp + 0x13], dl
mov dword [esp + 0x90], 0xd
mov edi, 0xc
mov dword [esp + 0xc], 0x10
mov edx, esi
mov ebx, dword [esp + 0x14]
shrd edx, ebx, cl
shr ebx, cl
movzx eax, byte [esp + 0x13]
mov byte [esp + edi + 0x48], al
test cl, 0x20
jne 0x41426f
mov ebx, edx
mov edx, esi
mov ecx, dword [esp + 0x94]
mov eax, dword [esp + 0x14]
shrd edx, eax, cl
mov edi, dword [esp + 0x90]
mov byte [esp + edi + 0x48], bl
mov ebx, eax
shr ebx, cl
test cl, 0x20
jne 0x414295
mov ebx, edx
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
shrd esi, eax, cl
mov edx, esi
mov esi, dword [esp + 0x98]
mov byte [esp + esi + 0x48], bl
shr eax, cl
test cl, 0x20
jne 0x4142b6
mov eax, edx
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x48], al
lea eax, [esp + 0x48]
mov esi, dword [esp + 0xc]
push esi
push eax
push dword [esp + 0x10]
push dword [esp + 0xc]
mov eax, dword [ebp + 8]
push dword [eax + 0x44]
call dword [eax + 0x3c]
add esp, 0x14
cmp eax, esi
jne 0x413944
mov eax, dword [esp + 0xc]
add dword [esp], eax
adc dword [esp + 8], 0
cmp dword [esp + 4], 0
je 0x41434f
xor edx, edx
mov eax, 0xfffffffe
cmp eax, dword [esp + 0x20]
mov eax, 0
sbb eax, dword [esp + 0x24]
jb 0x414311
xor eax, eax
jmp 0x414315
lea eax, [esp + 0x20]
mov ecx, 0xfffffffe
cmp ecx, dword [esp + 0x28]
mov ecx, 0
sbb ecx, dword [esp + 0x2c]
jb 0x414330
mov edi, 0
jmp 0x414334
lea edi, [esp + 0x38]
jae 0x41433a
lea edx, [esp + 0x28]
lea ecx, [esp + 0xa0]
push eax
push edi
call fcn.00414480
add esp, 8
mov dword [esp + 0x18], eax
movzx ebx, word [esp + 0x88]
movzx esi, word [esp + 0x34]
movzx eax, word [esp + 0x18]
movzx edi, word [esp + 0x30]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
push dword [ebp + 0x40]
push dword [ebp + 0x3c]
push dword [esp + 0x4c]
push dword [esp + 0x30]
push dword [esp + 0x30]
push 0
push ebx
push esi
push dword [esp + 0xac]
push dword [esp + 0x60]
push dword [esp + 0x60]
push dword [esp + 0x58]
push dword [esp + 0x58]
push dword [esp + 0xb8]
push dword [ebp + 0x18]
push eax
push dword [esp + 0x44]
push edi
call fcn.00414540
add esp, 0x48
test eax, eax
je 0x413944
mov eax, dword [ebp + 8]
inc dword [eax + 0x10]
mov ecx, dword [esp]
mov dword [eax], ecx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
mov eax, 1
jmp 0x413946