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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [ecx]
push ebx
push esi
xor esi, esi
mov dword [ebp - 8], ecx
push edi
mov edi, edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x14], esi
cmp dword [ecx + 0x110], esi
jne 0x49dcfa
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], esi
jne 0x49dcfa
cmp byte [edi + 0x2b], 1
je 0x49dcfa
cmp dword [ebp + 0xc], 0xb
jne 0x49da93
cmp word [edi + 0x20], si
jl 0x49da8c
movzx ebx, byte [edi + 0x2a]
mov dword [ebp + 0xc], ebx
cmp ebx, 0xb
jne 0x49da93
mov dword [ebp + 0xc], 2
mov edx, dword [eax + 0x20]
xor ebx, ebx
inc ebx
cmp dword [edx], ebx
jne 0x49dcfa
cmp dword [edx + 0x1c], esi
jne 0x49dcfa
cmp dword [eax + 0x24], esi
jne 0x49dcfa
cmp dword [eax + 0x30], esi
jne 0x49dcfa
cmp dword [eax + 0x28], esi
jne 0x49dcfa
cmp dword [eax + 0x3c], esi
jne 0x49dcfa
cmp dword [eax + 0x34], esi
jne 0x49dcfa
test byte [eax + 4], bl
jne 0x49dcfa
mov eax, dword [eax + 0x1c]
cmp dword [eax], ebx
jne 0x49dcfa
mov eax, dword [eax + 8]
cmp byte [eax], 0xb4
jne 0x49dcfa
lea eax, [edx + 8]
xor edx, edx
push eax
call fcn.00490517
mov esi, eax
mov dword [ebp - 0x24], esi
pop ecx
test esi, esi
je 0x49dcfa
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x14]
jne 0x49db24
mov eax, dword [esi + 0x3c]
cmp eax, dword [edi + 0x3c]
je 0x49dcfa
mov ecx, dword [esi + 0x1c]
mov eax, dword [edi + 0x1c]
shr ecx, 7
shr eax, 7
not ecx
not eax
xor ecx, eax
test cl, 1
jne 0x49dcfa
cmp byte [esi + 0x2b], 0
jne 0x49dcfa
movzx ecx, word [edi + 0x22]
cmp cx, word [esi + 0x22]
jne 0x49dcfa
mov ax, word [edi + 0x20]
cmp ax, word [esi + 0x20]
jne 0x49dcfa
mov eax, 0x10000
test dword [edi + 0x1c], eax
je 0x49db78
test dword [esi + 0x1c], eax
je 0x49dcfa
xor edx, edx
xor eax, eax
mov dword [ebp - 0x20], edx
cmp ax, cx
jge 0x49dcc6
push 0x60
pop eax
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x30], eax
mov ebx, dword [edi + 4]
mov ecx, dword [esi + 4]
add ebx, edx
add ecx, edx
mov dword [ebp - 0x18], ecx
mov dx, word [ebx + 0xe]
and dx, ax
mov ax, word [ecx + 0xe]
and ax, word [ebp - 0x30]
cmp dx, ax
jne 0x49dcfa
test dx, dx
je 0x49dbe7
push 0xffffffffffffffff
mov edx, ebx
mov ecx, edi
call fcn.00490862
mov edx, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.00490862
mov edx, eax
xor ecx, ecx
call fcn.0048a758
pop ecx
pop ecx
test eax, eax
jne 0x49dcfa
mov ecx, dword [ebp - 0x18]
mov al, byte [ebx + 8]
cmp al, byte [ecx + 8]
jne 0x49dcfa
call fcn.004908fc
mov ecx, ebx
mov dword [ebp - 0x28], eax
call fcn.004908fc
mov ecx, eax
mov eax, dword [ebp - 0x28]
test ecx, ecx
jne 0x49dc11
neg eax
sbb eax, eax
jmp 0x49dc20
test eax, eax
je 0x49dcfa
mov edx, eax
call fcn.0045c824
test eax, eax
jne 0x49dcfa
test byte [ebx + 4], 0xf
je 0x49dc3b
mov eax, dword [ebp - 0x18]
test byte [eax + 4], 0xf
je 0x49dcfa
test byte [ebx + 0xe], 0x60
jne 0x49dca7
cmp dword [ebp - 0x20], 0
jle 0x49dca7
mov edx, ebx
mov ecx, edi
call fcn.00490862
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov ebx, eax
call fcn.00490862
mov edx, eax
xor ecx, ecx
test edx, edx
sete cl
xor eax, eax
test ebx, ebx
sete al
cmp eax, ecx
jne 0x49dcfa
test ebx, ebx
je 0x49dca7
mov ecx, dword [edx + 8]
mov eax, dword [ebx + 8]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x49dc9e
test dl, dl
je 0x49dc9a
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x49dc9e
add eax, 2
add ecx, 2
test dl, dl
jne 0x49dc7e
xor eax, eax
jmp 0x49dca3
sbb eax, eax
or eax, 1
test eax, eax
jne 0x49dcfa
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
inc ebx
movsx eax, word [edi + 0x22]
add edx, 0x10
push 0x60
cmp ebx, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], edx
pop eax
jl 0x49db91
mov ebx, dword [edi + 8]
jmp 0x49dd22
mov eax, dword [ebp - 0x14]
cmp byte [ebx + 0x36], 0
push 1
pop ecx
cmovne eax, ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 8]
jmp 0x49dcf3
mov edx, eax
mov ecx, ebx
call fcn.0049d950
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x49dd01
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x49dce0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [eax + 0x2c]
cmp eax, dword [ebx + 0x2c]
jne 0x49dd1f
mov eax, dword [esi + 0x3c]
cmp eax, dword [edi + 0x3c]
jne 0x49dd1f
mov ecx, 0x19b
call fcn.0045c4f9
test eax, eax
je 0x49dcfa
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x49dccb
mov edx, dword [edi + 0x10]
test edx, edx
je 0x49dd3c
mov ecx, dword [esi + 0x10]
push 0xffffffffffffffff
call fcn.0048a9b8
pop ecx
test eax, eax
jne 0x49dcfa
mov ebx, dword [ebp - 0x10]
xor edx, edx
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebx + 0x24]
and eax, 0x4000
or eax, edx
je 0x49dd55
cmp dword [edi + 0x30], edx
jne 0x49dcfa
xor eax, eax
inc eax
and ecx, eax
mov eax, edx
or eax, ecx
jne 0x49dcfa
mov edx, dword [esi + 0x3c]
mov ecx, ebx
call fcn.004a2c91
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
call fcn.004a5717
mov edx, dword [ebp - 0x1c]
mov ebx, eax
mov eax, dword [ebp - 8]
mov ecx, eax
cmp dword [eax + 0x78], 0
cmovne ecx, dword [eax + 0x78]
call fcn.0049552b
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x10]
push edi
mov eax, dword [ecx + 0x28]
mov dword [ebp - 4], eax
add eax, 2
mov dword [ecx + 0x28], eax
call fcn.0049b3f0
pop ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], eax
call fcn.0048b52b
xor ecx, ecx
mov dword [ebp - 0x20], eax
push ecx
push eax
push ecx
push 0x4b
pop edx
mov ecx, ebx
call fcn.004746eb
mov ecx, dword [ebp - 8]
add esp, 0xc
call fcn.0048b52b
mov edx, dword [ebp - 4]
push 0x71
push edi
push dword [ebp + 0x10]
lea edx, [edx + 1]
mov dword [ebp - 0xc], eax
call fcn.0049af56
mov eax, dword [ebp - 0x10]
add esp, 0xc
test byte [eax + 0x18], 4
jne 0x49de4b
xor ecx, ecx
cmp word [edi + 0x20], cx
jge 0x49ddfa
cmp dword [edi + 8], ecx
jne 0x49de0e
cmp dword [ebp - 0x14], ecx
jne 0x49de0e
mov eax, dword [ebp + 0xc]
xor edx, edx
inc edx
cmp eax, 2
je 0x49de4e
cmp eax, edx
je 0x49de4e
mov eax, dword [ebp - 4]
push ecx
push ecx
inc eax
mov ecx, ebx
push eax
push 0x24
pop edx
call fcn.004746eb
add esp, 0xc
mov esi, eax
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 9
pop edx
call fcn.004746eb
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, esi
mov ecx, ebx
call fcn.00474f68
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ebp - 0x24]
mov dword [eax + 8], ecx
xor edx, edx
inc edx
test byte [esi + 0x1c], 0x80
mov ecx, dword [ebp - 8]
jne 0x49dffe
mov edx, dword [ebp - 4]
push 0x70
push esi
push dword [ebp - 0x1c]
call fcn.0049af56
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
push dword [ebp - 4]
push 0x24
pop edx
call fcn.004746eb
xor ecx, ecx
mov dword [ebp - 0x34], eax
add esp, 0xc
cmp word [edi + 0x20], cx
jl 0x49df05
push ecx
push dword [ebp - 0xc]
mov edx, 0x87
mov ecx, ebx
push dword [ebp - 4]
call fcn.004746eb
mov dword [ebp - 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 4
jne 0x49dee6
push dword [ebp - 0xc]
xor eax, eax
mov ecx, ebx
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
push 0x1f
pop edx
call fcn.004746eb
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov esi, eax
push edi
call fcn.00495753
pop ecx
mov edx, esi
mov ecx, ebx
call fcn.00474f68
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x49df3a
push 0
push dword [ebp - 0xc]
mov edx, 0x9f
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
call fcn.004746eb
jmp 0x49df37
cmp dword [edi + 8], ecx
jne 0x49df21
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 8
jne 0x49df21
mov eax, dword [ebp - 4]
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x7f
pop edx
jmp 0x49df2d
push ecx
push dword [ebp - 0xc]
mov edx, 0x87
push dword [ebp - 4]
mov ecx, ebx
call fcn.004746eb
mov dword [ebp - 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 4
je 0x49df64
xor eax, eax
mov edx, 0x89
push eax
push eax
mov eax, dword [ebp - 4]
mov ecx, ebx
inc eax
push eax
call fcn.004746eb
add esp, 0xc
mov dword [ebp - 0x28], 0x98
jmp 0x49df6b
mov dword [ebp - 0x28], 0xa9
mov ecx, dword [ebp - 4]
mov edx, 0x81
push dword [ebp - 0xc]
push ecx
lea eax, [ecx + 1]
mov ecx, ebx
push eax
call fcn.004746eb
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov edx, 0x80
mov ecx, ebx
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push eax
call fcn.004746eb
mov eax, dword [ebp - 0x10]
add esp, 0xc
test byte [eax + 0x18], 4
jne 0x49dfb7
push 0xfffffffffffffffb
push edi
or edx, 0xffffffff
mov ecx, ebx
call fcn.00474eab
pop ecx
pop ecx
mov edx, dword [ebp - 0x28]
mov ecx, ebx
call fcn.00474c95
xor eax, eax
push eax
push dword [ebp - 0x18]
push dword [ebp - 4]
push 0x27
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
push dword [ebp - 4]
push 0x7a
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
push 0x7a
pop edx
call fcn.004746eb
jmp 0x49e022
push dword [edi]
push edx
push dword [edi + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.0048fe11
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
push dword [esi]
push eax
push dword [esi + 0x14]
call fcn.0048fe11
mov eax, dword [edi + 8]
add esp, 0xc
mov edi, dword [ebp - 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x49e231
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x49e065
mov edi, dword [ebp - 0x18]
mov esi, eax
mov edx, esi
mov ecx, edi
call fcn.0049d950
test eax, eax
jne 0x49e059
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x49e045
mov edi, dword [ebp - 8]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
push dword [ebp - 0x1c]
mov ecx, ebx
push dword [eax + 0x2c]
push dword [ebp - 4]
push 0x70
pop edx
call fcn.004746eb
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
call fcn.00474f4d
push dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
mov ecx, ebx
push dword [eax + 0x2c]
mov eax, dword [ebp - 4]
inc eax
push eax
push 0x71
pop edx
call fcn.004746eb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
call fcn.00474f4d
xor eax, eax
mov ecx, ebx
lea edx, [eax + 1]
call fcn.00474c95
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push 0x24
pop edx
call fcn.004746eb
mov dword [ebp - 0x30], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 4
je 0x49e15e
xor eax, eax
mov edx, eax
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
movzx ecx, word [eax + 0x34]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x49e120
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0
je 0x49e11d
mov edx, dword [eax]
mov ecx, 0x4256c0
call fcn.0045c824
mov edx, dword [ebp - 0x28]
test eax, eax
jne 0x49e11d
mov eax, dword [ebp - 0x2c]
inc edx
add eax, 4
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x2c], eax
cmp edx, dword [ebp - 0x3c]
jl 0x49e0f3
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x34]
xor ecx, ecx
cmp edx, eax
jne 0x49e178
xor eax, eax
mov edx, 0x89
push eax
push eax
mov eax, dword [ebp - 4]
mov ecx, ebx
inc eax
push eax
call fcn.004746eb
mov ecx, dword [ebp - 4]
add esp, 0xc
mov edx, 0x81
mov dword [ebp - 0x14], 0x90
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
xor eax, eax
mov dword [ebp - 0x2c], eax
jmp 0x49e198
xor eax, eax
test byte [esi + 0x1c], 0x80
mov ecx, eax
je 0x49e178
mov eax, dword [ebp - 0x18]
push 1
mov al, byte [eax + 0x38]
and al, 3
cmp al, 2
pop eax
cmove ecx, eax
mov eax, dword [ebp - 4]
mov edx, 0x86
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x3c], eax
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
movzx eax, cx
mov ecx, dword [ebp - 0x3c]
mov dword [ebp - 0x14], eax
push dword [ebp - 0x2c]
push ecx
push dword [ebp - 0x28]
mov ecx, ebx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov edx, 0x8a
mov ecx, ebx
push eax
mov eax, dword [ebp - 4]
push dword [ebp - 0x20]
inc eax
push eax
call fcn.004746eb
mov edx, dword [ebp - 0x14]
add esp, 0xc
or edx, 8
mov ecx, ebx
call fcn.00474c95
xor eax, eax
push eax
mov eax, dword [ebp - 0x30]
inc eax
push eax
push dword [ebp - 4]
push 0x27
pop edx
call fcn.004746eb
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ecx, ebx
call fcn.00474f68
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
xor eax, eax
push eax
push eax
push dword [ebp - 4]
mov ecx, ebx
push 0x7a
pop edx
call fcn.004746eb
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
mov eax, dword [ebp - 4]
inc eax
push eax
push 0x7a
pop edx
call fcn.004746eb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x49e036
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x49e247
mov edx, eax
mov ecx, ebx
call fcn.00474f68
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.0048b54a
mov edx, dword [ebp - 0x20]
call fcn.0048b54a
mov esi, dword [ebp - 0x38]
xor eax, eax
test esi, esi
je 0x49e2a6
cmp dword [edi + 0x74], eax
je 0x49e26c
call fcn.0049b581
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push 0x46
pop edx
call fcn.004746eb
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00474f68
mov ecx, dword [ebx + 0x6c]
push edi
push edi
mov dword [eax + 8], ecx
mov ecx, ebx
mov eax, dword [ebp - 4]
inc eax
push eax
push 0x7a
pop edx
call fcn.004746eb
add esp, 0xc
jmp 0x49dcfa
inc eax
jmp 0x49dcfc