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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x94
xor eax, eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [edi]
mov dword [esp + 0x58], 0xffffffff
mov dword [esp + 0x54], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x24], ecx
cmp dword [edi + 0x40], eax
jne 0x4b0c8b
cmp byte [ecx + 0x40], al
jne 0x4b0c8b
mov ecx, dword [ebp + 0xc]
mov esi, edi
call fcn.0045e2ea
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
je 0x4b0c89
push 0
push 0
push 0x6d
mov edx, ebx
mov eax, edi
call fcn.004409ca
mov esi, eax
xor eax, eax
add esp, 0xc
cmp dword [ebx + 0xc], eax
mov ecx, edi
setne al
mov dword [esp + 0x34], esi
mov dword [esp + 0x50], eax
mov eax, ebx
call fcn.0047685a
test eax, eax
jne 0x4b0c89
xor ecx, ecx
test esi, esi
setne cl
push ecx
mov ecx, ebx
call fcn.00452d0a
add esp, 4
test eax, eax
jne 0x4b0c89
mov esi, dword [ebx + 0x44]
mov ecx, dword [esp + 0x24]
call fcn.0042cb6a
mov edx, dword [esp + 0x24]
mov ecx, dword [edx + 0x10]
mov edx, dword [ebx]
mov dword [esp + 0x1c], eax
add eax, eax
mov eax, dword [ecx + eax*8]
push eax
push 0
push edx
push 9
mov eax, edi
call fcn.0045920a
add esp, 0x10
mov dword [esp + 0x4c], eax
cmp eax, 1
je 0x4b0c89
mov esi, dword [edi + 0x44]
mov eax, dword [ebp + 0xc]
mov dword [eax + 0x38], esi
inc dword [edi + 0x44]
mov eax, dword [ebx + 8]
mov ecx, dword [edi + 0x44]
xor edx, edx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x74], edx
test eax, eax
je 0x4b05c8
inc ecx
mov dword [edi + 0x44], ecx
mov eax, dword [eax + 0x14]
inc edx
test eax, eax
jne 0x4b05b8
mov dword [esp + 0x74], edx
cmp dword [esp + 0x50], 0
je 0x4b05e5
mov ecx, dword [edi + 0x1ec]
mov edx, dword [ebx]
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ecx
mov dword [edi + 0x1ec], edx
mov ebx, edi
call fcn.00457daa
mov dword [esp + 0x10], eax
test eax, eax
je 0x4b0c89
cmp byte [ebx + 0x12], 0
jne 0x4b0602
or dword [eax + 0x58], 0x10
mov ecx, dword [esp + 0x1c]
push 1
mov eax, ebx
call fcn.0049997a
add esp, 4
cmp dword [esp + 0x50], 0
je 0x4b0634
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
push esi
push eax
push ecx
push ebx
call fcn.0049980a
add esp, 0x10
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
lea esi, [esp + 0x80]
mov dword [esp + 0x88], eax
mov dword [esp + 0x8c], eax
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
mov dword [esp + 0x80], ebx
mov dword [esp + 0x84], edx
call fcn.00467b9a
test eax, eax
jne 0x4b0c89
mov eax, dword [esp + 0x24]
test byte [eax + 0x18], 0x80
je 0x4b06bb
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
mov esi, dword [esp + 0x10]
push eax
push 0
push 0x19
mov dword [esp + 0x64], eax
call fcn.00454e8a
add esp, 0xc
cmp dword [esp + 0x4c], 0
jne 0x4b076c
test edi, edi
jne 0x4b076c
cmp dword [esp + 0x34], 0
mov edi, dword [esp + 0x18]
jne 0x4b0770
test byte [edi + 0x2c], 0x10
jne 0x4b0770
mov ecx, dword [ebx]
test dword [ecx + 0x18], 0x80000
je 0x4b0703
push 0
push 0
push edi
call fcn.00443a2a
add esp, 0xc
test eax, eax
jne 0x4b0770
mov edx, dword [edi]
mov eax, dword [edi + 0x20]
mov esi, dword [esp + 0x1c]
push edx
push 1
push eax
push esi
mov eax, ebx
call fcn.0044cf4a
add esp, 0x10
test byte [edi + 0x2c], 0x20
jne 0x4b073e
mov ecx, dword [edi]
mov edx, dword [esp + 0x58]
mov eax, dword [edi + 0x20]
push 0xfffffffffffffffe
push ecx
push edx
push esi
mov esi, dword [esp + 0x20]
push eax
push 0x74
call fcn.00454e1a
add esp, 0x18
mov edi, dword [edi + 8]
test edi, edi
je 0x4b0c22
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x2c]
push ecx
push edx
push 0x74
call fcn.00454e8a
mov edi, dword [edi + 0x14]
add esp, 0xc
test edi, edi
jne 0x4b074d
jmp 0x4b0c22
mov edi, dword [esp + 0x18]
test byte [edi + 0x2c], 0x20
jne 0x4b07a4
mov esi, dword [esp + 0x10]
mov eax, 1
add dword [ebx + 0x48], eax
mov dword [esp + 0x38], eax
mov eax, dword [ebx + 0x48]
push eax
push 0
push 0x1c
mov dword [esp + 0x2c], 0
mov dword [esp + 0x6c], eax
call fcn.00454e8a
add esp, 0xc
jmp 0x4b07f5
mov eax, edi
call fcn.0042cf7a
movzx ecx, word [eax + 0x32]
mov esi, dword [esp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebx + 0x48]
mov dword [esp + 0x38], ecx
movsx ecx, cx
lea edx, [eax + 1]
add eax, ecx
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x44]
push ecx
mov dword [esp + 0x4c], edx
push eax
lea edx, [eax + 1]
push 0x38
mov dword [esp + 0x48], eax
mov dword [ebx + 0x44], edx
call fcn.00454e8a
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x70], eax
add esp, 0xc
mov eax, ebx
call fcn.0047132a
mov eax, dword [esp + 0x2c]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
inc eax
push eax
push 0xc
push 0
push 0
push ecx
push edx
push ebx
call fcn.00495cba
add esp, 0x1c
mov dword [esp + 0x4c], eax
test eax, eax
je 0x4b0c89
mov ecx, dword [eax + 0x3c]
mov edx, dword [eax + 0x40]
movzx eax, byte [eax + 0x26]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x24]
test byte [ecx + 0x18], 0x80
mov dword [esp + 0x7c], edx
mov dword [esp + 0x40], eax
je 0x4b0853
mov edx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
push 1
push edx
push 0x25
call fcn.00454e8a
add esp, 0xc
cmp dword [esp + 0x20], 0
je 0x4b08a1
movsx eax, word [esp + 0x38]
xor esi, esi
mov dword [esp + 0x1c], eax
test eax, eax
jle 0x4b0897
nop
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x20]
lea ecx, [esi + eax]
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x2c]
push ecx
movsx ecx, word [eax + esi*2]
mov eax, dword [esp + 0x14]
push ecx
push edx
push edi
call fcn.0047a36a
inc esi
add esp, 0x10
cmp esi, dword [esp + 0x1c]
jl 0x4b086a
mov eax, dword [esp + 0x48]
mov dword [esp + 0x14], eax
jmp 0x4b08ca
mov eax, dword [ebx + 0x48]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
push 0
inc eax
push eax
push ecx
push 0xffffffffffffffff
push edx
mov edi, ebx
call fcn.0047ddca
add esp, 0x14
mov dword [esp + 0x14], eax
cmp eax, dword [ebx + 0x48]
jle 0x4b08ca
mov dword [ebx + 0x48], eax
cmp dword [esp + 0x40], 0
je 0x4b0970
movzx eax, word [esp + 0x38]
mov edi, dword [esp + 0x74]
mov esi, dword [esp + 0x24]
lea ecx, [edi + 2]
mov dword [esp + 0x1c], eax
call fcn.00444b5a
mov esi, eax
mov dword [esp + 0x54], esi
test esi, esi
jne 0x4b090a
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0045625a
add esp, 4
jmp 0x4b0c89
lea edx, [edi + 1]
push edx
push 1
push esi
call fcn.004ce72a
mov eax, dword [esp + 0x84]
add esp, 0xc
mov byte [edi + esi + 1], 0
test eax, eax
js 0x4b0931
sub eax, dword [esp + 0x2c]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x7c]
test eax, eax
js 0x4b0941
sub eax, dword [esp + 0x2c]
mov byte [eax + esi], 0
mov eax, dword [esp + 0x64]
test eax, eax
je 0x4b0959
mov ebx, dword [esp + 0x10]
push eax
call fcn.00454bda
mov ebx, dword [ebp + 8]
add esp, 4
mov esi, dword [esp + 0x10]
push 0x10
call fcn.00454f4a
add esp, 4
mov dword [esp + 0x70], eax
jmp 0x4b09f2
cmp dword [esp + 0x20], 0
je 0x4b09d2
inc dword [ebx + 0x48]
mov eax, dword [ebx + 0x48]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x20]
mov dword [esp + 0x14], eax
movsx eax, word [esp + 0x38]
push eax
push ecx
mov eax, edi
mov dword [esp + 0x24], 0
call fcn.00446f3a
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x50]
add esp, 4
push eax
movsx eax, word [esp + 0x40]
push ecx
push eax
push edx
push 0x30
mov esi, edi
call fcn.00454e1a
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x54]
push eax
push ecx
push 0x6c
call fcn.00454e8a
add esp, 0x24
jmp 0x4b09f4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
mov esi, dword [esp + 0x10]
push edx
push eax
push 0x7e
mov dword [esp + 0x28], 1
call fcn.00454e8a
add esp, 0xc
mov edi, esi
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.0045625a
add esp, 4
cmp dword [esp + 0x40], 0
je 0x4b0a2d
mov eax, edi
call fcn.0044e18a
push eax
push 0
push 0x10
mov esi, edi
mov dword [esp + 0x68], eax
call fcn.00454e8a
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov edx, edi
call fcn.00436cca
cmp dword [esp + 0x50], 0
jne 0x4b0a58
mov ecx, dword [esp + 0x54]
lea edx, [esp + 0x28]
push edx
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x48]
push eax
mov eax, dword [esp + 0x20]
push ecx
push edx
push 0x36
push eax
push ebx
call fcn.004759da
add esp, 0x1c
cmp dword [esp + 0x40], 0
je 0x4b0a92
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x54]
mov ecx, eax
sub ecx, dword [esp + 0x2c]
cmp byte [ecx + edx], 0
je 0x4b0adb
movsx ecx, word [esp + 0x1c]
mov edx, dword [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x60]
push edx
push ecx
push eax
push 0x42
mov eax, edi
call fcn.00454c7a
add esp, 0x14
jmp 0x4b0adb
cmp dword [esp + 0x20], 0
mov esi, edi
je 0x4b0ac1
mov edx, dword [esp + 0x3c]
push edx
push 0x6a
call fcn.00454eea
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
push 0x63
call fcn.00454e8a
add esp, 0x14
jmp 0x4b0adb
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x60]
push edx
push 0
push eax
push 0x7f
call fcn.0044e1fa
add esp, 0x10
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x18]
test byte [eax + 0x2c], 0x10
je 0x4b0b3d
mov esi, dword [eax + 0x3c]
test esi, esi
je 0x4b0afb
mov eax, dword [esp + 0x24]
cmp dword [esi], eax
je 0x4b0afb
mov esi, dword [esi + 0x18]
test esi, esi
jne 0x4b0af0
mov ecx, dword [esp + 0x18]
push ecx
mov eax, ebx
call fcn.0047beea
mov edx, dword [esp + 0x18]
add esp, 4
push 0xfffffffffffffff6
push esi
push edx
push 1
push 0
push 0xf
mov esi, edi
call fcn.00454e1a
mov eax, dword [edi + 4]
add esp, 0x18
test eax, eax
je 0x4b0b34
mov ecx, dword [edi + 0x20]
lea ecx, [ecx + ecx*4]
mov byte [eax + ecx*4 - 0x11], 2
mov ecx, ebx
call fcn.0042ccfa
jmp 0x4b0b72
cmp byte [ebx + 0x12], 0
mov edx, dword [esp + 0x40]
push edx
push 0xa
sete cl
movzx edx, cl
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x38]
push edx
mov edx, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x4c]
push edx
push ecx
push eax
push ebx
call fcn.004b011a
add esp, 0x28
cmp dword [esp + 0x40], 0
je 0x4b0b8a
mov edx, dword [esp + 0x5c]
push edx
mov ecx, edi
call fcn.0042e3ea
add esp, 4
jmp 0x4b0bbe
cmp dword [esp + 0x20], 0
mov esi, edi
je 0x4b0ba2
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x3c]
inc eax
push eax
push ecx
push 9
jmp 0x4b0bab
mov edx, dword [esp + 0x30]
push edx
push 0
push 0x10
call fcn.00454e8a
mov eax, dword [esp + 0x3c]
add esp, 0xc
mov edx, edi
call fcn.00436cca
cmp dword [esp + 0x50], 0
jne 0x4b0c22
mov eax, dword [esp + 0x18]
test byte [eax + 0x2c], 0x10
jne 0x4b0c22
cmp dword [esp + 0x20], 0
jne 0x4b0be7
mov ecx, dword [esp + 0x44]
push ecx
push 0x3b
mov esi, edi
call fcn.00454eea
add esp, 8
mov edx, dword [esp + 0x18]
mov eax, dword [edx + 8]
mov dword [esp + 0x34], eax
test eax, eax
je 0x4b0c22
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov ecx, dword [esp + 0x28]
push ecx
push 0x3b
mov esi, edi
call fcn.00454eea
mov edx, dword [esp + 0x3c]
mov eax, dword [edx + 0x14]
inc dword [esp + 0x30]
add esp, 8
mov dword [esp + 0x34], eax
test eax, eax
jne 0x4b0bfe
cmp byte [ebx + 0x12], 0
jne 0x4b0c3a
cmp dword [ebx + 0x19c], 0
jne 0x4b0c3a
push ebx
call fcn.00475bfa
add esp, 4
mov eax, dword [esp + 0x24]
test byte [eax + 0x18], 0x80
je 0x4b0c89
cmp byte [ebx + 0x12], 0
jne 0x4b0c89
cmp dword [ebx + 0x19c], 0
jne 0x4b0c89
mov ecx, dword [esp + 0x58]
mov esi, dword [esp + 0x10]
push 1
push ecx
push 0x23
call fcn.00454e8a
add esp, 0xc
mov eax, 1
mov edi, esi
call fcn.0044df8a
push 0
push 0x100b0af0
push 0
push 0
mov ecx, esi
call fcn.0045fd0a
add esp, 0x10
xor eax, eax
mov ecx, dword [esp + 0x6c]
cmp ecx, eax
je 0x4b0c9d
mov edx, dword [esp + 0x68]
mov dword [ecx + 0x1ec], edx
mov eax, dword [ebp + 0xc]
mov esi, dword [esp + 0x24]
push eax
mov eax, esi
call fcn.00443b3a
mov ecx, dword [ebp + 0x10]
add esp, 4
push ecx
push esi
call fcn.0044a5ca
mov eax, dword [esp + 0x5c]
add esp, 8
mov ecx, esi
call fcn.0043e91a
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret