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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xdc
mov eax, dword [0x53a090]
xor eax, esp
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
mov ecx, dword [eax]
mov dword [esp + 0x64], ecx
mov ecx, dword [eax + 4]
mov eax, dword [eax + 8]
mov dword [esp + 0x68], eax
xor eax, eax
mov dword [esp + 0x70], ecx
xor ecx, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
lea eax, [esi + edx]
push edi
mov dword [esp + 0x64], ecx
mov dword [esp + 0x70], eax
cmp esi, 1
jbe 0x4fa2be
mov eax, dword [ebx]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x10]
and al, byte [ebx + 0xfbc]
cmp al, 8
je 0x4fa2be
dec esi
cmp esi, 1
ja 0x4fa2a5
mov eax, dword [ebx]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov ecx, dword [ebx]
push eax
mov edx, dword [ecx]
push ecx
call dword [edx + 0x18]
mov edx, dword [ebx]
mov edi, eax
mov esi, dword [edx]
lea ecx, [edi - 1]
push ecx
push edx
call dword [esi + 0x10]
movsx ecx, byte [ebx + 0xfbc]
movsx edx, al
mov eax, dword [esp + 0x70]
push 0x1f
push ebx
and edx, ecx
push edx
sub eax, edi
push eax
push edi
lea ecx, [esp + 0x24]
call fcn.004d8ad0
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4fae6e
lea ecx, [ecx]
cmp byte [esp + 0x3c], 0
je 0x4fa346
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x40]
xor edi, edi
cmp dword [esp + 0x20], ecx
mov ebx, ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x64], edi
call fcn.004d7520
mov dword [esp + 0x40], edi
jmp 0x4fa34e
mov edi, dword [esp + 0x5c]
mov ebx, dword [esp + 0x64]
mov esi, dword [esp + 0x48]
cmp esi, 0x20
je 0x4fa361
cmp esi, 9
je 0x4fa361
inc edi
mov dword [esp + 0x5c], edi
mov esi, dword [esp + 0x2c]
sub esi, ebx
mov bl, byte [ebp + 0x14]
test bl, bl
je 0x4fa66e
cmp esi, 6
jl 0x4fa380
cmp esi, 0x48
jl 0x4fa66e
test esi, esi
jne 0x4fa39c
push dword [esp + 0x48]
call fcn.00511bf7
add esp, 4
cmp eax, 0x63
je 0x4fa3a7
cmp dword [esp + 0x48], 0x2a
je 0x4fa3a7
cmp dword [esp + 0x48], 0x21
jne 0x4fa50c
push 0x43f374
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f37c
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f384
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f38c
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f394
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f39c
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f3a4
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f3ac
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
push 0x43f3b4
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fa469
cmp dword [esp + 0x50], 0x24
je 0x4fa469
push 1
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fa48e
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0xb
cmp byte [esp + 0x3d], 0
jne 0x4fade3
lea esp, [esp]
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4fae41
mov al, byte [esp + 0x3d]
mov byte [esp + 0x3c], al
test al, al
je 0x4fa4d7
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
lea edx, [eax + 1]
mov eax, dword [esp + 0x10]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
call fcn.004d8a30
cmp byte [esp + 0x3d], 0
je 0x4fa4a0
jmp 0x4fade3
cmp esi, 0x48
jl 0x4fa5bc
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
cmp byte [esp + 0x3d], 0
mov dword [esp + 0x40], 1
jne 0x4fade3
jmp 0x4fa550
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4fae41
mov al, byte [esp + 0x3d]
mov byte [esp + 0x3c], al
test al, al
je 0x4fa587
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
lea edx, [eax + 1]
mov eax, dword [esp + 0x10]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
call fcn.004d8a30
cmp byte [esp + 0x3d], 0
je 0x4fa550
jmp 0x4fade3
cmp esi, 5
jge 0x4fa5f7
mov eax, dword [esp + 0x48]
push dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
add eax, 0xffffffd0
cmp eax, 9
ja 0x4fa64c
cmp dword [esp + 0x20], ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0xd
jmp 0x4fade3
jne 0x4fade3
mov esi, dword [esp + 0x48]
cmp esi, 0xd
je 0x4fa644
cmp esi, 0xa
je 0x4fa644
push 0xe
lea ecx, [esp + 0x14]
call fcn.004d8d60
mov esi, dword [esp + 0x48]
mov ecx, esi
call fcn.004bd8f0
test al, al
jne 0x4fade3
cmp esi, 0x30
je 0x4fade3
push dword [esp + 0x60]
lea ecx, [esp + 0x14]
call fcn.004d8d90
jmp 0x4fade3
push dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0
jmp 0x4fade3
cmp dword [esp + 0x48], 0x23
jne 0x4fa713
cmp edi, 1
jne 0x4fa713
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
cmp byte [esp + 0x3d], 0
mov dword [esp + 0x40], 0xb
jne 0x4fa713
mov edi, edi
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4fa713
mov al, byte [esp + 0x3d]
mov byte [esp + 0x3c], al
test al, al
je 0x4fa6e3
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
lea edx, [eax + 1]
mov eax, dword [esp + 0x10]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
call fcn.004d8a30
cmp byte [esp + 0x3d], 0
je 0x4fa6b0
test bl, bl
jne 0x4fa90d
cmp dword [esp + 0x48], 0x26
jne 0x4fa90d
cmp dword [esp + 0x40], 1
je 0x4fa90d
mov cl, 0x20
mov ebx, 1
movsx eax, cl
cmp eax, 0x20
je 0x4fa74a
cmp eax, 9
je 0x4fa74a
cmp eax, 0xb
jne 0x4fa798
cmp ebx, 0x84
jge 0x4fa798
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
add esi, ebx
cmp esi, dword [edi + 0xfa8]
jl 0x4fa76c
cmp esi, dword [edi + 0xfac]
jl 0x4fa786
mov ecx, dword [esp + 0x10]
push esi
call fcn.004d7350
cmp esi, dword [edi + 0xfa8]
jl 0x4fa793
cmp esi, dword [edi + 0xfac]
jge 0x4fa793
sub esi, dword [edi + 0xfa8]
inc ebx
mov cl, byte [esi + edi + 4]
jmp 0x4fa738
xor cl, cl
inc ebx
jmp 0x4fa738
cmp cl, 0x21
jne 0x4fa825
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
cmp dword [esp + 0x50], 0x21
mov dword [esp + 0x40], 0xe
jne 0x4fabae
lea ecx, [esp + 0x10]
call fcn.004d8c70
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 1
mov esi, dword [esp + 0x48]
cmp esi, 0xd
je 0x4fa971
cmp esi, 0xa
je 0x4fa971
cmp dword [esp + 0x40], 0
jne 0x4fade3
jmp 0x4fa996
cmp cl, 0xd
je 0x4fa833
cmp cl, 0xa
jne 0x4fa906
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push esi
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xe
call fcn.004d8c70
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0
jmp 0x4fa890
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x2c]
cmp edx, 0x20
je 0x4fa8a5
lea eax, [edx - 9]
cmp eax, 4
ja 0x4fa8b6
cmp ecx, dword [esp + 0x18]
jae 0x4fa8b6
lea ecx, [esp + 0x10]
call fcn.004d8c70
jmp 0x4fa890
cmp edx, 0x26
jne 0x4fa8e9
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 0xe
call fcn.004d8c70
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], esi
mov bl, byte [ebp + 0x14]
mov edi, dword [esp + 0x5c]
cmp dword [esp + 0x40], 6
jne 0x4fa918
push 6
jmp 0x4fa975
cmp dword [esp + 0x40], 2
jne 0x4faa18
mov esi, dword [esp + 0x48]
cmp esi, 0x80
jge 0x4fa952
push esi
call fcn.0051149d
add esp, 4
test eax, eax
jne 0x4fa815
cmp esi, 0x5f
je 0x4fa815
cmp esi, 0x25
je 0x4fa815
mov esi, dword [esp + 0x48]
cmp esi, 0x27
je 0x4fa815
cmp esi, 0x22
je 0x4fa815
cmp esi, 0x2e
je 0x4fa815
push dword [esp + 0x40]
mov ecx, dword [esp + 0x30]
cmp dword [esp + 0x20], ecx
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0
cmp dword [esp + 0x48], 0x21
jne 0x4fac4b
push 0x43f384
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fac21
push 0x43f39c
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fac21
push 0x43f3b4
lea ecx, [esp + 0x14]
call fcn.004fa010
test al, al
jne 0x4fac21
cmp dword [esp + 0x50], 0x24
je 0x4fac21
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 1
jmp 0x4fade3
cmp dword [esp + 0x40], 7
jne 0x4faadf
mov esi, dword [esp + 0x48]
cmp esi, 0x80
jge 0x4faa51
push esi
call fcn.0051149d
add esp, 4
test eax, eax
jne 0x4faa46
cmp esi, 0x5f
je 0x4faa46
cmp esi, 0x25
jne 0x4faa51
cmp dword [esp + 0x48], 0x25
jne 0x4fa815
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov ecx, dword [edi + 0x1f68]
push 0x64
lea eax, [esp + 0x7c]
push eax
push edi
lea edx, [edx - 1]
call fcn.0050e660
mov ecx, dword [esp + 0x74]
add esp, 0xc
lea eax, [esp + 0x78]
push eax
call fcn.0050e250
test al, al
je 0x4faa93
mov eax, 8
mov dword [esp + 0x40], eax
push eax
jmp 0x4fa975
mov ecx, dword [esp + 0x74]
lea eax, [esp + 0x78]
push eax
call fcn.0050e250
test al, al
je 0x4faab4
mov eax, 9
mov dword [esp + 0x40], eax
push eax
jmp 0x4fa975
mov ecx, dword [esp + 0x6c]
lea eax, [esp + 0x78]
push eax
call fcn.0050e250
test al, al
je 0x4faad5
mov eax, 0xa
mov dword [esp + 0x40], eax
push eax
jmp 0x4fa975
mov eax, dword [esp + 0x40]
push eax
jmp 0x4fa975
mov eax, dword [esp + 0x40]
cmp eax, 1
je 0x4fa7ff
cmp eax, 0xb
je 0x4fa7ff
cmp eax, 3
jne 0x4fab3d
cmp dword [esp + 0x48], 0x27
mov dword [esp + 0x60], eax
jne 0x4fab1a
cmp dword [esp + 0x50], 0x27
lea ecx, [esp + 0x10]
jne 0x4fab73
call fcn.004d8c70
jmp 0x4fa815
cmp byte [esp + 0x3d], 0
je 0x4fade3
push 0
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 5
call fcn.004d8d90
jmp 0x4fa815
cmp dword [esp + 0x40], 4
jne 0x4fab85
cmp byte [esp + 0x3d], 0
mov dword [esp + 0x60], 4
jne 0x4fab25
cmp dword [esp + 0x48], 0x22
jne 0x4fade3
cmp dword [esp + 0x50], 0x22
lea ecx, [esp + 0x10]
jne 0x4fab73
call fcn.004d8c70
jmp 0x4fa815
push 0
call fcn.004d8d90
xor eax, eax
mov dword [esp + 0x60], eax
jmp 0x4fa815
cmp dword [esp + 0x40], 0xc
jne 0x4faba7
cmp dword [esp + 0x48], 0x2e
jne 0x4fade3
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d90
jmp 0x4fa815
cmp dword [esp + 0x40], 0xe
jne 0x4fabbe
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fa815
cmp dword [esp + 0x40], 0xd
jne 0x4fa815
mov eax, dword [esp + 0x48]
add eax, 0xffffffd0
cmp eax, 9
jbe 0x4fabe5
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fa815
test bl, bl
je 0x4fac08
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
sub eax, ecx
cmp eax, 4
jbe 0x4fac08
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fa815
cmp edi, 5
jle 0x4fade3
push 0
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fa815
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0xb
jmp 0x4fade3
cmp byte [ebp + 0x14], 0
jne 0x4fac8c
mov eax, dword [esp + 0x48]
add eax, 0xffffffd0
cmp eax, 9
ja 0x4fac8c
cmp dword [esp + 0x5c], 1
jne 0x4fac8c
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push 0
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 0xd
jmp 0x4fade3
mov esi, dword [esp + 0x48]
lea eax, [esi - 0x30]
cmp eax, 9
jbe 0x4fadc0
cmp esi, 0x2e
jne 0x4facb1
mov eax, dword [esp + 0x50]
add eax, 0xffffffd0
cmp eax, 9
jbe 0x4fadc0
push dword [esp + 0x48]
call fcn.00511bf7
add esp, 4
cmp eax, 0x62
je 0x4face4
push dword [esp + 0x48]
call fcn.00511bf7
add esp, 4
cmp eax, 0x6f
je 0x4face4
push dword [esp + 0x48]
call fcn.00511bf7
add esp, 4
cmp eax, 0x7a
jne 0x4facfa
mov eax, dword [esp + 0x50]
cmp eax, 0x22
je 0x4fad90
cmp eax, 0x27
je 0x4fad90
cmp dword [esp + 0x48], 0x2e
jne 0x4fad21
push dword [esp + 0x50]
call fcn.005114ca
add esp, 4
test eax, eax
je 0x4fad21
push 0xc
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fade3
mov esi, dword [esp + 0x48]
cmp esi, 0x80
jge 0x4fad4a
push esi
call fcn.0051149d
add esp, 4
test eax, eax
je 0x4fad4a
push 7
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fade3
cmp dword [esp + 0x48], 0x22
jne 0x4fad61
push 4
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fade3
cmp dword [esp + 0x48], 0x27
jne 0x4fad75
push 3
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fade3
movsx ecx, byte [esp + 0x48]
call fcn.004d8ff0
test al, al
je 0x4fade3
push 6
lea ecx, [esp + 0x14]
call fcn.004d8d60
jmp 0x4fade3
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
lea ecx, [esp + 0x10]
mov dword [esp + 0x40], 2
call fcn.004d8c70
jmp 0x4fade3
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push 0
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov dword [esp + 0x40], 2
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jae 0x4fae41
mov al, byte [esp + 0x3d]
mov byte [esp + 0x3c], al
test al, al
je 0x4fae16
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
lea edx, [eax + 1]
mov eax, dword [esp + 0x10]
push edx
mov eax, dword [eax]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
add dword [esp + 0x2c], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x54]
lea ecx, [esp + 0x10]
mov dword [esp + 0x4c], eax
call fcn.004d8a30
jmp 0x4fae60
mov word [esp + 0x3c], 0x100
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x48], 0x20
mov dword [esp + 0x50], 0x20
mov eax, dword [esp + 0x2c]
cmp eax, dword [esp + 0x18]
jb 0x4fa310
mov ecx, dword [esp + 0x2c]
cmp dword [esp + 0x1c], ecx
push dword [esp + 0x40]
sbb eax, eax
neg eax
inc eax
sub ecx, eax
push ecx
mov ecx, dword [esp + 0x18]
call fcn.004d7520
mov esi, dword [esp + 0x10]
mov edi, dword [esi + 0x1f60]
mov dword [esi + 0xfa8], 0x7fffffff
test edi, edi
jle 0x4faec9
mov ecx, dword [esi]
lea eax, [esi + 0xfc0]
mov edx, dword [ecx]
push eax
push edi
push ecx
call dword [edx + 0x34]
mov eax, dword [esi + 0x1f60]
add dword [esi + 0x1f6c], eax
mov dword [esi + 0x1f60], 0
mov ecx, dword [esp + 0xe4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0050ecf7
mov esp, ebp
pop ebp
ret