Function at 0x48177f
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 + 0x10c], esi
jne 0x481a23
mov eax, dword [ebp + 8]
cmp dword [eax + 0x40], esi
jne 0x481a23
cmp byte [edi + 0x2b], 1
je 0x481a23
cmp dword [ebp + 0xc], 0xb
jne 0x4817de
cmp word [edi + 0x20], si
jl 0x4817d7
movzx ebx, byte [edi + 0x2a]
mov dword [ebp + 0xc], ebx
cmp ebx, 0xb
jne 0x4817de
mov dword [ebp + 0xc], 2
mov edx, dword [eax + 0x20]
xor ebx, ebx
inc ebx
cmp dword [edx], ebx
jne 0x481a23
cmp dword [edx + 0x1c], esi
jne 0x481a23
cmp dword [eax + 0x24], esi
jne 0x481a23
cmp dword [eax + 0x30], esi
jne 0x481a23
cmp dword [eax + 0x28], esi
jne 0x481a23
cmp dword [eax + 0x3c], esi
jne 0x481a23
cmp dword [eax + 0x34], esi
jne 0x481a23
test byte [eax + 4], bl
jne 0x481a23
mov eax, dword [eax + 0x1c]
cmp dword [eax], ebx
jne 0x481a23
mov eax, dword [eax + 8]
cmp byte [eax], 0xb4
jne 0x481a23
lea eax, [edx + 8]
xor edx, edx
push eax
call fcn.00474385
mov esi, eax
mov dword [ebp - 0x24], esi
pop ecx
test esi, esi
je 0x481a23
mov eax, dword [esi + 0x14]
cmp eax, dword [edi + 0x14]
jne 0x48186f
mov eax, dword [esi + 0x3c]
cmp eax, dword [edi + 0x3c]
je 0x481a23
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 0x481a23
cmp byte [esi + 0x2b], 0
jne 0x481a23
movzx ecx, word [edi + 0x22]
cmp cx, word [esi + 0x22]
jne 0x481a23
mov ax, word [edi + 0x20]
cmp ax, word [esi + 0x20]
jne 0x481a23
mov eax, 0x10000
test dword [edi + 0x1c], eax
je 0x4818c3
test dword [esi + 0x1c], eax
je 0x481a23
xor edx, edx
xor eax, eax
mov dword [ebp - 0x20], edx
cmp ax, cx
jge 0x4819ef
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 0x481a23
test dx, dx
je 0x481932
push 0xffffffffffffffff
mov edx, ebx
mov ecx, edi
call fcn.004746b0
mov edx, dword [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004746b0
mov edx, eax
xor ecx, ecx
call fcn.0046e6a6
pop ecx
pop ecx
test eax, eax
jne 0x481a23
mov ecx, dword [ebp - 0x18]
mov al, byte [ebx + 8]
cmp al, byte [ecx + 8]
jne 0x481a23
call fcn.00474772
mov ecx, ebx
mov dword [ebp - 0x28], eax
call fcn.00474772
mov ecx, eax
mov eax, dword [ebp - 0x28]
test ecx, ecx
jne 0x48195c
neg eax
sbb eax, eax
jmp 0x48196b
test eax, eax
je 0x481a23
mov edx, eax
call fcn.00441c65
test eax, eax
jne 0x481a23
test byte [ebx + 4], 0xf
je 0x481986
mov eax, dword [ebp - 0x18]
test byte [eax + 4], 0xf
je 0x481a23
test byte [ebx + 0xe], 0x60
jne 0x4819d0
cmp dword [ebp - 0x20], 0
jle 0x4819d0
mov edx, ebx
mov ecx, edi
call fcn.004746b0
mov edx, dword [ebp - 0x18]
mov ecx, esi
mov ebx, eax
call fcn.004746b0
mov edx, eax
xor ecx, ecx
test edx, edx
sete cl
xor eax, eax
test ebx, ebx
sete al
cmp eax, ecx
jne 0x481a23
test ebx, ebx
je 0x4819d0
push dword [edx + 8]
push dword [ebx + 8]
call fcn.004b5b50
pop ecx
pop ecx
test eax, eax
jne 0x481a23
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 0x4818dc
mov ebx, dword [edi + 8]
jmp 0x481a4b
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 0x481a1c
mov edx, eax
mov ecx, ebx
call fcn.0048169b
test eax, eax
mov eax, dword [ebp - 0x20]
jne 0x481a2a
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x481a09
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov eax, dword [eax + 0x2c]
cmp eax, dword [ebx + 0x2c]
jne 0x481a48
mov eax, dword [esi + 0x3c]
cmp eax, dword [edi + 0x3c]
jne 0x481a48
mov ecx, 0x19b
call fcn.0044197e
test eax, eax
je 0x481a23
mov ebx, dword [ebx + 0x14]
test ebx, ebx
jne 0x4819f4
mov edx, dword [edi + 0x10]
test edx, edx
je 0x481a65
mov ecx, dword [esi + 0x10]
push 0xffffffffffffffff
call fcn.0046e8ec
pop ecx
test eax, eax
jne 0x481a23
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 0x481a7e
cmp dword [edi + 0x30], edx
jne 0x481a23
xor eax, eax
inc eax
and ecx, eax
mov eax, edx
or eax, ecx
jne 0x481a23
mov edx, dword [esi + 0x3c]
mov ecx, ebx
call fcn.004864ff
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
call fcn.00488de5
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.004793c0
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.0047f129
pop ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x30], eax
call fcn.0046f3a4
xor ecx, ecx
mov dword [ebp - 0x20], eax
push ecx
push eax
push ecx
push 0x4b
pop edx
mov ecx, ebx
call fcn.004591cc
mov ecx, dword [ebp - 8]
add esp, 0xc
call fcn.0046f3a4
mov edx, dword [ebp - 4]
push 0x71
push edi
push dword [ebp + 0x10]
lea edx, [edx + 1]
mov dword [ebp - 0xc], eax
call fcn.0047ec81
mov eax, dword [ebp - 0x10]
add esp, 0xc
test byte [eax + 0x18], 4
jne 0x481b74
xor ecx, ecx
cmp word [edi + 0x20], cx
jge 0x481b23
cmp dword [edi + 8], ecx
jne 0x481b37
cmp dword [ebp - 0x14], ecx
jne 0x481b37
mov eax, dword [ebp + 0xc]
xor edx, edx
inc edx
cmp eax, 2
je 0x481b77
cmp eax, edx
je 0x481b77
mov eax, dword [ebp - 4]
push ecx
push ecx
inc eax
mov ecx, ebx
push eax
push 0x24
pop edx
call fcn.004591cc
add esp, 0xc
mov esi, eax
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push 9
pop edx
call fcn.004591cc
add esp, 0xc
mov dword [ebp - 0x38], eax
mov edx, esi
mov ecx, ebx
call fcn.00459a36
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 0x481d25
mov edx, dword [ebp - 4]
push 0x70
push esi
push dword [ebp - 0x1c]
call fcn.0047ec81
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
push dword [ebp - 4]
push 0x24
pop edx
call fcn.004591cc
xor ecx, ecx
mov dword [ebp - 0x34], eax
add esp, 0xc
cmp word [edi + 0x20], cx
jl 0x481c2d
push ecx
push dword [ebp - 0xc]
mov edx, 0x87
mov ecx, ebx
push dword [ebp - 4]
call fcn.004591cc
mov dword [ebp - 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 4
jne 0x481c0e
push dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov ecx, ebx
push 0
inc eax
push eax
push 0x1f
pop edx
call fcn.004591cc
mov edx, dword [ebp + 0xc]
add esp, 0xc
mov ecx, dword [ebp - 8]
mov esi, eax
push edi
call fcn.004795e8
pop ecx
mov edx, esi
mov ecx, ebx
call fcn.00459a36
mov ecx, dword [ebx + 0x6c]
mov esi, dword [ebp - 0x24]
mov dword [eax + 8], ecx
mov eax, dword [ebp - 0x30]
test eax, eax
jle 0x481c62
push 0
push dword [ebp - 0xc]
mov edx, 0x9f
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 8]
call fcn.004591cc
jmp 0x481c5f
cmp dword [edi + 8], ecx
jne 0x481c49
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 8
jne 0x481c49
mov eax, dword [ebp - 4]
push ecx
push dword [ebp - 0xc]
inc eax
push eax
push 0x7f
pop edx
jmp 0x481c55
push ecx
push dword [ebp - 0xc]
mov edx, 0x87
push dword [ebp - 4]
mov ecx, ebx
call fcn.004591cc
mov dword [ebp - 0x18], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 4
je 0x481c8c
xor eax, eax
mov edx, 0x89
push eax
push eax
mov eax, dword [ebp - 4]
mov ecx, ebx
inc eax
push eax
call fcn.004591cc
add esp, 0xc
mov dword [ebp - 0x28], 0x98
jmp 0x481c93
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.004591cc
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.004591cc
mov eax, dword [ebp - 0x10]
add esp, 0xc
test byte [eax + 0x18], 4
jne 0x481cdf
push 0xfffffffffffffffb
push edi
or edx, 0xffffffff
mov ecx, ebx
call fcn.00459979
pop ecx
pop ecx
mov edx, dword [ebp - 0x28]
mov ecx, ebx
call fcn.0045974e
push 0
push dword [ebp - 0x18]
push dword [ebp - 4]
push 0x27
pop edx
call fcn.004591cc
add esp, 0xc
xor eax, eax
mov ecx, ebx
push eax
push eax
push dword [ebp - 4]
push 0x7a
pop edx
call fcn.004591cc
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.004591cc
jmp 0x481d48
push dword [edi]
push edx
push dword [edi + 0x14]
mov edx, dword [ebp + 0x10]
call fcn.00473c88
mov edx, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, dword [ebp - 8]
push dword [esi]
push 0
push dword [esi + 0x14]
call fcn.00473c88
mov eax, dword [edi + 8]
add esp, 0xc
mov edi, dword [ebp - 8]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x481f52
mov eax, dword [esi + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x481d8b
mov edi, dword [ebp - 0x18]
mov esi, eax
mov edx, esi
mov ecx, edi
call fcn.0048169b
test eax, eax
jne 0x481d7f
mov esi, dword [esi + 0x14]
test esi, esi
jne 0x481d6b
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.004591cc
mov edx, dword [ebp - 0x14]
add esp, 0xc
mov ecx, edi
call fcn.00459a1b
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.004591cc
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
call fcn.00459a1b
xor eax, eax
mov ecx, ebx
lea edx, [eax + 1]
call fcn.0045974e
xor eax, eax
push eax
push eax
push dword [ebp - 4]
push 0x24
pop edx
call fcn.004591cc
mov dword [ebp - 0x30], eax
add esp, 0xc
mov eax, dword [ebp - 0x10]
test byte [eax + 0x18], 4
je 0x481e81
mov eax, dword [ebp - 0x14]
xor edx, edx
mov dword [ebp - 0x28], edx
movzx ecx, word [eax + 0x34]
mov dword [ebp - 0x3c], ecx
test ecx, ecx
je 0x481e44
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x2c], eax
cmp dword [eax], 0
je 0x481e41
mov edx, dword [eax]
mov ecx, 0x4ccdf0
call fcn.00441c65
mov edx, dword [ebp - 0x28]
test eax, eax
jne 0x481e41
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 0x481e17
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x34]
xor ecx, ecx
cmp edx, eax
jne 0x481e9b
xor eax, eax
mov edx, 0x89
push eax
push eax
mov eax, dword [ebp - 4]
mov ecx, ebx
inc eax
push eax
call fcn.004591cc
mov ecx, dword [ebp - 4]
add esp, 0xc
and dword [ebp - 0x2c], 0
mov edx, 0x81
mov dword [ebp - 0x14], 0x90
lea eax, [ecx + 1]
mov dword [ebp - 0x28], eax
jmp 0x481ebb
xor eax, eax
test byte [esi + 0x1c], 0x80
mov ecx, eax
je 0x481e9b
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.004591cc
mov eax, dword [ebp - 4]
add esp, 0xc
inc eax
mov edx, 0x8a
mov ecx, ebx
push 0
push dword [ebp - 0x20]
push eax
call fcn.004591cc
mov edx, dword [ebp - 0x14]
add esp, 0xc
or edx, 8
mov ecx, ebx
call fcn.0045974e
mov eax, dword [ebp - 0x30]
push 0
inc eax
push eax
push dword [ebp - 4]
push 0x27
pop edx
call fcn.004591cc
mov edx, dword [ebp - 0x30]
add esp, 0xc
mov ecx, ebx
call fcn.00459a36
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.004591cc
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.004591cc
mov ecx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 0x18], ecx
test ecx, ecx
jne 0x481d5c
mov eax, dword [ebp - 0x34]
test eax, eax
je 0x481f68
mov edx, eax
mov ecx, ebx
call fcn.00459a36
mov ecx, dword [ebx + 0x6c]
mov dword [eax + 8], ecx
mov edx, dword [ebp - 0xc]
mov ecx, edi
call fcn.0046f3c3
mov edx, dword [ebp - 0x20]
call fcn.0046f3c3
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x481fc6
cmp dword [edi + 0x74], 0
je 0x481f8c
call fcn.0047f2ba
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push 0x46
pop edx
call fcn.004591cc
add esp, 0xc
mov edx, esi
mov ecx, ebx
call fcn.00459a36
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.004591cc
add esp, 0xc
jmp 0x481a23
xor eax, eax
inc eax
jmp 0x481a25