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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
push esi
push edi
test eax, eax
je 0x4a28dd
push eax
call dword [0x100b7064]
add esp, 4
mov edi, dword [ebx + 0x18]
call fcn.0043cdba
mov eax, dword [ebx]
test eax, eax
je 0x4a28fc
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4a28fc
push eax
call dword [0x100b7064]
add esp, 4
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4a2911
cmp esi, 5
je 0x4a2911
cmp esi, 6
jne 0x4a32a3
cmp dword [ebx], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov edx, dword [ecx]
mov ecx, dword [ebx + 4]
mov dword [esp + 0x28], edx
mov edx, dword [ecx + 4]
mov edx, dword [edx]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x2c], 0
je 0x4a2949
mov eax, dword [eax + 4]
cmp byte [eax + 0x14], 2
jne 0x4a2949
mov esi, 5
jmp 0x4a29f2
xor esi, esi
cmp dword [ebx + 0xc], esi
jne 0x4a297d
push 2
push ecx
call fcn.00491aba
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a29f2
mov eax, dword [ebx + 4]
lea ecx, [ebx + 8]
push ecx
push 1
mov dword [ebx + 0xc], 1
call fcn.00441a6a
add esp, 8
mov eax, dword [ebx + 0x18]
cmp byte [eax + 8], 0
mov dword [esp + 0xc], eax
jne 0x4a29f2
mov edi, eax
mov esi, dword [edi + 4]
xor ebx, ebx
call fcn.0043cdba
mov edx, edi
mov al, byte [edx + 8]
cmp al, 2
je 0x4a29c0
cmp al, 1
je 0x4a29c0
movzx ecx, word [esi + 0x16]
test cl, 0x40
je 0x4a2ac3
mov eax, dword [esi + 0x4c]
cmp dword [eax], ebx
je 0x4a2ac3
mov ebx, 0x106
mov edi, edx
cmp byte [edi + 9], 0
je 0x4a29e5
dec dword [edi + 0xc]
jne 0x4a29e5
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x4a29e1
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
mov esi, ebx
mov ebx, dword [ebp + 8]
mov dword [esp + 0x2c], 1
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 4]
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x20]
mov eax, dword [eax]
movzx eax, byte [eax + 5]
mov edx, dword [ecx + 0x20]
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x3c], eax
test esi, esi
jne 0x4a2a26
cmp eax, 5
jne 0x4a2a26
cmp edx, edi
je 0x4a2a26
lea esi, [eax + 3]
mov ebx, dword [ecx + 0x2c]
mov dword [esp + 0xc], ebx
mov dword [esp + 0x20], 0
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x4a2a46
cmp dword [esp + 0x20], eax
jge 0x4a2bcc
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 0x10]
cmp edi, ebx
ja 0x4a2bcf
test esi, esi
jne 0x4a2c10
mov edx, dword [ecx + 0x18]
mov ecx, dword [edx + 4]
mov eax, dword [0x100b7120]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x4a2aaf
mov eax, dword [esp + 0x28]
push 2
lea edx, [esp + 0x34]
push edx
push edi
push eax
call fcn.0048dd3a
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a2aaf
mov ebx, dword [esp + 0x30]
mov eax, dword [ebx + 4]
mov ecx, dword [ebp + 8]
push esi
push eax
push edi
push ecx
call fcn.0046525a
mov esi, eax
add esp, 0x10
mov eax, ebx
call fcn.0043d42a
mov ebx, dword [esp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 1
add dword [eax + 0x10], ecx
add dword [esp + 0x20], ecx
jmp 0x4a2a35
mov edi, edx
mov eax, dword [edi + 4]
cmp byte [edi + 9], bl
je 0x4a2b01
cmp dword [eax + 0x4c], edi
je 0x4a2ae2
test byte [eax + 0x16], 0x20
je 0x4a2ae2
mov ebx, 0x106
jmp 0x4a29c2
mov eax, dword [eax + 0x48]
test eax, eax
je 0x4a2b01
nop
cmp dword [eax], edi
je 0x4a2afa
cmp dword [eax + 4], 1
jne 0x4a2afa
cmp byte [eax + 8], 1
jne 0x4a2ad8
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4a2aea
mov eax, ecx
xor ebx, ebx
and eax, 0xfff7
mov word [esi + 0x16], ax
cmp dword [esi + 0x2c], ebx
jne 0x4a2b1a
or eax, 8
mov word [esi + 0x16], ax
cmp dword [esi + 0xc], 0
jne 0x4a2b2f
mov eax, esi
call fcn.0049015a
mov ebx, eax
test ebx, ebx
je 0x4a2b1a
jmp 0x4a2b33
test ebx, ebx
je 0x4a2b4f
cmp byte [esi + 0x14], 0
jne 0x4a2b4f
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4a2b4f
mov eax, dword [eax + 0x44]
call fcn.0043d42a
mov dword [esi + 0xc], 0
cmp bl, 5
jne 0x4a2b8c
cmp byte [esi + 0x14], 0
jne 0x4a2b8c
mov edi, dword [esi + 4]
add edi, 0x1b4
je 0x4a2b8c
mov ecx, dword [edi]
test ecx, ecx
je 0x4a2b8c
mov eax, dword [edi + 8]
test eax, eax
js 0x4a2b8c
mov edx, dword [edi + 4]
push eax
push edx
call ecx
add esp, 8
test eax, eax
je 0x4a2b85
inc dword [edi + 8]
jmp 0x4a2b1a
mov dword [edi + 8], 0xffffffff
mov edi, dword [esp + 0xc]
test ebx, ebx
jne 0x4a29c2
cmp byte [edi + 8], bl
jne 0x4a2bb5
inc dword [esi + 0x28]
cmp byte [edi + 9], bl
je 0x4a2bb5
mov byte [edi + 0x24], 1
mov eax, dword [esi + 0x48]
lea ecx, [edi + 0x1c]
mov dword [edi + 0x28], eax
mov dword [esi + 0x48], ecx
mov byte [edi + 8], 1
cmp byte [esi + 0x14], 1
jae 0x4a29c2
mov byte [esi + 0x14], 1
jmp 0x4a29c2
mov ecx, dword [ebp + 8]
test esi, esi
jne 0x4a2c10
mov eax, dword [ecx + 0x10]
mov edx, ebx
sub edx, eax
inc edx
mov dword [ecx + 0x24], ebx
mov dword [ecx + 0x20], edx
cmp eax, ebx
ja 0x4a2c19
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], esi
jne 0x4a3120
mov ecx, eax
mov edx, dword [ecx + 0x18]
mov eax, dword [edx + 4]
mov eax, dword [eax]
mov edx, dword [eax + 0x58]
mov dword [ecx + 0x2c], edx
mov dword [eax + 0x58], ecx
mov dword [ecx + 0x28], 1
jmp 0x4a3120
cmp esi, 0x65
jne 0x4a3120
test ebx, ebx
jne 0x4a2c6c
mov eax, dword [ebp + 8]
mov edi, dword [eax + 4]
call fcn.0043cdba
mov ecx, dword [edi + 4]
mov dword [ecx + 0x2c], ebx
mov ebx, dword [edi + 4]
call fcn.0048a83a
cmp byte [edi + 9], 0
mov esi, eax
je 0x4a2c5b
dec dword [edi + 0xc]
jne 0x4a2c5b
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x4a2c57
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
mov dword [esp + 0xc], 1
test esi, esi
je 0x4a2c6c
cmp esi, 0x65
jne 0x4a2cdc
mov eax, dword [ebp + 8]
mov ebx, dword [eax + 8]
mov edi, dword [eax + 4]
mov esi, dword [edi + 4]
inc ebx
call fcn.0043cdba
mov eax, dword [esi + 0xc]
mov esi, dword [eax + 0x38]
mov eax, dword [eax + 0x44]
push eax
call fcn.004601ca
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
jne 0x4a2cb3
mov ecx, ebx
shr ecx, 0x18
mov byte [esi + 0x28], cl
mov edx, ebx
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov byte [esi + 0x29], dl
mov byte [esi + 0x2a], cl
mov byte [esi + 0x2b], bl
cmp byte [edi + 9], 0
je 0x4a2cda
dec dword [edi + 0xc]
jne 0x4a2cda
mov edx, dword [edi + 4]
mov ecx, dword [edx + 0x38]
test ecx, ecx
je 0x4a2cd6
push ecx
call dword [0x100b706c]
mov eax, dword [esp + 0x34]
add esp, 4
mov byte [edi + 0xa], 0
mov esi, eax
test esi, esi
jne 0x4a3120
mov edi, dword [ebp + 8]
mov eax, dword [edi]
test eax, eax
je 0x4a2cf2
call fcn.0045e97a
cmp dword [esp + 0x3c], 5
jne 0x4a2d11
mov eax, dword [edi + 4]
push 2
push eax
call fcn.0049256a
mov esi, eax
add esp, 8
test esi, esi
jne 0x4a3120
mov ebx, dword [esp + 0x24]
cmp ebx, dword [esp + 0x10]
jge 0x4a2d4c
mov eax, dword [esp + 0x10]
cdq
idiv ebx
mov edx, dword [esp + 0xc]
mov ecx, eax
lea eax, [ecx + edx - 1]
cdq
idiv ecx
xor edx, edx
mov edi, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
mov eax, dword [0x100b7120]
div dword [ecx + 0x20]
inc eax
cmp edi, eax
jne 0x4a2d5a
dec edi
jmp 0x4a2d5a
mov eax, ebx
cdq
idiv dword [esp + 0x10]
mov edi, eax
imul edi, dword [esp + 0xc]
cmp ebx, dword [esp + 0x10]
jge 0x4a3041
mov eax, ebx
cdq
mov ecx, eax
mov eax, dword [esp + 0xc]
mov ebx, edx
push ebx
cdq
push ecx
push edx
push eax
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ebx
call fcn.004ce8ca
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 0x3c]
mov eax, dword [eax + 0x18]
mov dword [esp + 0xc], edx
mov dword [esp + 0x3c], eax
cmp edi, dword [esp + 0x3c]
ja 0x4a2df5
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [0x100b7120]
xor edx, edx
div dword [ecx + 0x20]
inc eax
cmp edi, eax
je 0x4a2dee
mov eax, dword [esp + 0x1c]
push 0
lea edx, [esp + 0x34]
push edx
push edi
push eax
call fcn.0048dd3a
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a2dee
mov ebx, dword [esp + 0x30]
push ebx
call fcn.004601ca
add esp, 4
mov esi, eax
test ebx, ebx
je 0x4a2dee
mov eax, ebx
call fcn.0043d42a
inc edi
test esi, esi
je 0x4a2d9b
jmp 0x4a2e0a
test esi, esi
jne 0x4a2e0a
mov eax, dword [esp + 0x1c]
push 1
push esi
call fcn.0049052a
add esp, 8
mov esi, eax
mov ecx, dword [esp + 0x10]
mov edi, dword [0x100b7120]
lea eax, [edi + ecx]
mov ecx, dword [esp + 0x44]
cdq
cmp edx, ecx
jg 0x4a2e32
jl 0x4a2e28
cmp eax, dword [esp + 0x40]
jae 0x4a2e32
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
jmp 0x4a2e3e
mov edx, dword [esp + 0x40]
mov dword [esp + 0x10], edx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x24]
add eax, edi
cdq
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
test esi, esi
jne 0x4a3120
jmp 0x4a2e5a
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x34], ecx
jg 0x4a2fb1
jl 0x4a2e78
mov edx, dword [esp + 0x10]
cmp dword [esp + 0x30], edx
jae 0x4a2fb1
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x30]
push 0
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push edx
push eax
push edi
mov dword [esp + 0x38], 0
call fcn.004ce74a
mov ecx, dword [esp + 0x30]
inc eax
push eax
push ecx
call fcn.0048dd3a
mov ebx, dword [esp + 0x30]
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x4a2ed9
mov esi, dword [esp + 0x34]
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx]
push esi
mov esi, dword [esp + 0x28]
push edi
push esi
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
add esp, 0x14
mov esi, eax
test ebx, ebx
je 0x4a2f94
test byte [ebx + 0x18], 0x40
mov edi, dword [ebx + 0x10]
je 0x4a2f32
dec dword [edi + 0x78]
mov ecx, dword [edi + 0x88]
mov dword [ebx + 0xc], ecx
mov eax, dword [edi + 0x3c]
mov dword [edi + 0x88], ebx
mov eax, dword [eax]
mov edx, dword [ebx + 4]
mov ecx, dword [ebx + 0x14]
push edx
mov dword [esp + 0x40], eax
mov eax, dword [edi + 0x98]
cdq
push edx
push eax
dec ecx
push 0
push ecx
call fcn.004ce8ca
push edx
push eax
mov eax, dword [edi + 0x3c]
push eax
mov eax, dword [esp + 0x4c]
mov edx, dword [eax + 0x48]
call edx
add esp, 0x10
jmp 0x4a2f39
mov eax, ebx
call fcn.004386ca
cmp dword [edi + 0x78], 0
jne 0x4a2f94
mov eax, dword [edi + 0xdc]
cmp dword [eax + 0xc], 0
jne 0x4a2f94
mov al, byte [edi + 0x10]
cmp al, 6
je 0x4a2f8d
test al, al
je 0x4a2f8d
cmp al, 2
jb 0x4a2f79
mov eax, dword [0x100b873c]
test eax, eax
je 0x4a2f65
call eax
mov eax, edi
call fcn.0048ba7a
mov eax, dword [0x100b8740]
test eax, eax
je 0x4a2f8d
call eax
jmp 0x4a2f8d
cmp byte [edi + 4], 0
jne 0x4a2f8d
push 0
push 0
mov ebx, edi
call fcn.004442da
add esp, 8
mov ebx, edi
call fcn.004483da
mov ecx, dword [esp + 0x48]
add dword [esp + 0x30], ecx
mov edx, dword [esp + 0x4c]
adc dword [esp + 0x34], edx
test esi, esi
je 0x4a2e5a
jmp 0x4a3120
test esi, esi
jne 0x4a3120
mov esi, dword [esp + 0xc]
mov eax, dword [esi]
mov edx, dword [eax + 0x18]
lea ecx, [esp + 0x48]
push ecx
push esi
call edx
add esp, 8
test eax, eax
jne 0x4a2ff8
mov ecx, dword [esp + 0x44]
cmp dword [esp + 0x4c], ecx
jl 0x4a2ff8
jg 0x4a2fe7
mov edx, dword [esp + 0x48]
cmp edx, dword [esp + 0x40]
jbe 0x4a2ff8
mov eax, dword [esi]
mov edx, dword [eax + 0x10]
push ecx
mov ecx, dword [esp + 0x44]
push ecx
push esi
call edx
add esp, 0xc
mov esi, eax
test eax, eax
jne 0x4a3120
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0x3c]
cmp dword [ecx], eax
je 0x4a3029
mov eax, dword [ecx]
push 0
push 0x15
push ecx
mov ecx, dword [eax + 0x28]
call ecx
add esp, 0xc
cmp eax, 0xc
jne 0x4a3025
xor eax, eax
jmp 0x4a3029
test eax, eax
jne 0x4a3054
cmp byte [esi + 7], 0
jne 0x4a3054
movzx ecx, byte [esi + 0xb]
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
push ecx
push eax
mov eax, dword [edx + 0x14]
call eax
jmp 0x4a3051
mov eax, dword [esp + 0x1c]
push 0
push 0
mov dword [eax + 0x18], edi
call fcn.0049052a
add esp, 8
mov esi, eax
test esi, esi
jne 0x4a3120
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
cmp byte [edi + 8], al
je 0x4a311b
call fcn.0043cdba
cmp byte [edi + 8], 2
jne 0x4a30f3
mov esi, dword [edi + 4]
mov ebx, dword [esi]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x3c], esi
test eax, eax
jne 0x4a31ad
cmp byte [ebx + 0x10], 2
jne 0x4a3185
cmp byte [ebx + 4], al
je 0x4a3185
cmp byte [ebx + 5], 1
jne 0x4a3185
mov byte [ebx + 0x10], 1
mov eax, dword [esi + 0x3c]
mov byte [esi + 0x14], 1
mov dword [esp + 0x30], eax
test eax, eax
je 0x4a30ec
cmp dword [eax + 8], 0
je 0x4a30e3
lea esi, [eax + 0xc]
mov ebx, 0x7d
mov ecx, dword [esi]
push ecx
call fcn.0043e28a
add esp, 4
add esi, 4
dec ebx
jne 0x4a30ca
mov esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
push eax
call fcn.004391da
add esp, 4
mov dword [esi + 0x3c], 0
call fcn.00447d3a
cmp byte [edi + 9], 0
je 0x4a311b
dec dword [edi + 0xc]
jne 0x4a311b
mov edx, dword [edi + 4]
mov eax, dword [edx + 0x38]
test eax, eax
je 0x4a3117
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
mov esi, 0x65
cmp dword [esp + 0x2c], 0
je 0x4a328e
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
push 0
call fcn.004a102a
mov edi, dword [edi + 0x18]
add esp, 4
cmp byte [edi + 8], 0
je 0x4a328e
call fcn.0043cdba
cmp byte [edi + 8], 2
jne 0x4a3266
mov ecx, dword [edi + 4]
mov ebx, dword [ecx]
mov eax, dword [ebx + 0x28]
mov dword [esp + 0x24], ecx
test eax, eax
jne 0x4a326b
cmp byte [ebx + 0x10], 2
jne 0x4a31e1
cmp byte [ebx + 4], al
je 0x4a31e1
cmp byte [ebx + 5], 1
jne 0x4a31e1
mov byte [ebx + 0x10], 1
jmp 0x4a3211
movzx edx, byte [ebx + 0x13]
push 1
push edx
call fcn.004442da
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x4a31a6
cmp ecx, 0xa
jne 0x4a31ad
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x10], 6
mov ebx, eax
test ebx, ebx
je 0x4a30ad
cmp byte [edi + 9], 0
je 0x4a31da
dec dword [edi + 0xc]
jne 0x4a31da
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4a31d6
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
mov esi, ebx
jmp 0x4a3120
movzx eax, byte [ebx + 0x13]
push 1
push eax
call fcn.004442da
mov ecx, eax
and ecx, 0xff
add esp, 8
cmp ecx, 0xd
je 0x4a3202
cmp ecx, 0xa
jne 0x4a3209
mov dword [ebx + 0x28], eax
mov byte [ebx + 0x10], 6
mov ecx, dword [esp + 0x24]
test eax, eax
jne 0x4a326b
mov eax, dword [ecx + 0x3c]
mov byte [ecx + 0x14], 1
mov dword [esp + 0x28], eax
test eax, eax
je 0x4a325f
cmp dword [eax + 8], 0
je 0x4a324e
mov ebx, eax
add ebx, 0xc
mov dword [esp + 0x2c], 0x7d
lea esp, [esp]
mov edx, dword [ebx]
push edx
call fcn.0043e28a
add esp, 4
add ebx, 4
dec dword [esp + 0x2c]
jne 0x4a323a
mov eax, dword [esp + 0x28]
push eax
call fcn.004391da
mov ecx, dword [esp + 0x28]
add esp, 4
mov dword [ecx + 0x3c], 0
call fcn.00447d3a
cmp byte [edi + 9], 0
je 0x4a328e
dec dword [edi + 0xc]
jne 0x4a328e
mov ecx, dword [edi + 4]
mov eax, dword [ecx + 0x38]
test eax, eax
je 0x4a328a
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
cmp esi, 0xc0a
jne 0x4a329b
mov esi, 7
mov edx, dword [ebp + 8]
mov dword [edx + 0x1c], esi
mov ebx, edx
mov eax, dword [ebx]
test eax, eax
je 0x4a32ba
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4a32ba
push eax
call dword [0x100b706c]
add esp, 4
mov edi, dword [ebx + 0x18]
cmp byte [edi + 9], 0
je 0x4a32e0
dec dword [edi + 0xc]
jne 0x4a32e0
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4a32dc
push eax
call dword [0x100b706c]
add esp, 4
mov byte [edi + 0xa], 0
mov ecx, dword [ebx + 0x14]
mov eax, dword [ecx + 0xc]
test eax, eax
je 0x4a32f4
push eax
call dword [0x100b706c]
add esp, 4
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret