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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
mov eax, dword [0x5c4e68]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor eax, eax
push esi
push edi
xor ebx, ebx
mov edx, dword [ebp + 8]
mov word [ebp - 0x54], bx
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x52]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
push 7
mov byte [ebp - 0x24], bl
pop ecx
lea edi, [ebp - 0x23]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
cmp edx, ebx
lea edi, [ebp - 0x3e]
mov word [ebp - 0x40], bx
stosw word es:[edi], ax
lea edi, [ebp - 0x26]
mov word [ebp - 0x28], bx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], esi
stosw word es:[edi], ax
je 0x4a58dd
cmp esi, ebx
mov eax, dword [edx + 4]
mov dword [ebp - 0x34], eax
je 0x4a58dd
cmp dword [esi + 0x78], ebx
jle 0x4a58dd
imul eax, eax, 0xa
lea ebx, [eax + edx]
lea edi, [ebx + 0x1a8]
mov edx, edi
mov dword [ebp - 0x5c], edi
call fcn.004c3b34
test eax, eax
jne 0x4a587e
mov al, byte [edi]
xor edx, edx
jmp 0x4a585a
call fcn.004c4ca0
test eax, eax
jne 0x4a585e
inc edx
mov al, byte [edi + edx]
test al, al
jne 0x4a584d
lea eax, [ebx + edx + 0x1a8]
push eax
call fcn.00512917
mov dword [ebp - 0x38], eax
mov eax, 0x3e7
cmp dword [ebp - 0x38], eax
pop ecx
jle 0x4a5882
mov dword [ebp - 0x38], eax
jmp 0x4a5882
and dword [ebp - 0x38], 0
push 0x1543
lea eax, [ebp - 0x54]
push str..ProcessCC.c
push eax
call fcn.004f2709
mov eax, dword [esi + 0x7c]
add esp, 0xc
test eax, eax
jg 0x4a58bb
xor edx, edx
inc edx
mov ecx, esi
mov dword [esi + 0x7c], edx
call fcn.004a5737
push edx
mov ebx, eax
call fcn.004a5753
mov edi, eax
mov dword [ebp - 0x2c], edi
jmp 0x4a5907
mov ecx, eax
imul ecx, ecx, 0x13c
cmp dword [ecx + esi - 0xfc], 0
je 0x4a58f2
cmp eax, dword [esi + 0x78]
jl 0x4a58ee
push str.:9:InitializeCurrentPayment___FAILED:_there_are_no_more_payment_nodes_available_
call fcn.004265da
pop ecx
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051291c
leave
ret
inc eax
mov dword [esi + 0x7c], eax
mov ecx, esi
call fcn.004a5737
push 1
mov ebx, eax
call fcn.004a5753
mov dword [ebp - 0x2c], eax
mov edi, eax
mov dword [ebx], 0x13c
mov eax, dword [esi + 0x7c]
xor edx, edx
cmp edi, edx
mov dword [ebx + 0x7c], eax
mov eax, dword [esi + 0x78]
pop ecx
mov dword [ebx + 0x78], eax
mov dword [ebp - 0x44], edx
je 0x4a5a53
push dword [edi + 0x10]
call fcn.004f06e6
test eax, eax
pop ecx
jne 0x4a5a53
mov eax, dword [edi + 0x10]
mov dword [ebx + 0x10], eax
inc byte [ebx + 0x12]
mov al, byte [ebx + 0x12]
cmp al, 0xc
mov byte [ebx + 0x13], 1
jbe 0x4a5954
inc word [ebx + 0x10]
mov byte [ebx + 0x12], 1
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], eax
movzx eax, ax
push eax
movzx eax, byte [ebx + 0x16]
call fcn.004f07c2
add esp, 4
mov byte [ebx + 0x17], al
cmp dword [edi + 0xe0], edx
je 0x4a5ad4
movzx eax, byte [ebx + 0x12]
cmp eax, dword [edi + 0x10c]
jle 0x4a5995
movzx eax, word [ebx + 0x10]
cmp eax, dword [edi + 0x110]
jge 0x4a5ad4
cmp dword [edi + 0xe4], edx
je 0x4a59d4
push dword [edi + 0x10]
call fcn.004f061e
test eax, eax
pop ecx
je 0x4a5ad4
mov eax, dword [edi + 0x10]
mov dword [ebp - 0x28], eax
shr eax, 0x10
inc al
cmp al, 0xc
mov dword [ebp - 0x44], 1
mov byte [ebp - 0x26], al
jbe 0x4a59cf
inc word [ebp - 0x28]
mov byte [ebp - 0x26], 1
mov eax, dword [edi + 0x14]
jmp 0x4a5a4b
lea esi, [edi + 0xd0]
push edx
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f0665
add esp, 0x14
test eax, eax
je 0x4a5ad4
mov esi, dword [ebp - 0x2c]
sub esp, 0x10
add esi, 0xd0
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x44], 1
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
mov dword [ebp - 0x28], eax
shr eax, 0x10
add esp, 0x10
inc al
cmp al, 0xc
mov byte [ebp - 0x26], al
jbe 0x4a5a2c
inc word [ebp - 0x28]
mov byte [ebp - 0x26], 1
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0xe8]
cmp eax, 8
je 0x4a5a44
cmp eax, 0xa
je 0x4a5a44
cmp eax, 0xffffffff
jne 0x4a5a48
mov byte [ebp - 0x25], 1
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x40], eax
jmp 0x4a5ad4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x34]
lea esi, [eax + ecx*4 + 0x2980]
push dword [esi]
mov dword [ebp - 0x58], esi
call fcn.004f061e
test eax, eax
pop ecx
je 0x4a5aa0
push dword [esi]
lea esi, [ebp - 0x54]
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
add esp, 0x10
push eax
call fcn.004f0d12
push eax
call fcn.0051209e
add esp, 0xc
cmp eax, 0xc
jg 0x4a5aa0
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
jmp 0x4a5ab4
sub esp, 0x10
lea esi, [ebp - 0x54]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
add esp, 0x10
mov dword [ebx + 0x10], eax
mov byte [ebx + 0x13], 1
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x14], eax
movzx eax, ax
push eax
movzx eax, byte [ebx + 0x16]
call fcn.004f07c2
add esp, 4
mov byte [ebx + 0x17], al
sub esp, 0x10
lea esi, [ebp - 0x54]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004f05c5
push dword [ebp - 0x5c]
mov dword [ebx + 0xc], eax
push 0xa
lea eax, [ebx + 0x1c]
pop ecx
call fcn.004c3b66
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x30]
mov eax, dword [edi + esi*4 + 0x1e90]
add esp, 0x14
test eax, eax
jne 0x4a5b1a
fld dword [0x5bf83c]
push ecx
fstp dword [esp]
call fcn.0045fe03
pop ecx
mov dword [ebx + 0x28], eax
mov eax, dword [edi + esi*4 + 0x21b0]
mov dword [ebx + 0x30], eax
mov eax, dword [edi + esi*4 + 0x2020]
mov ecx, dword [ebx + 0x30]
mov dword [ebx + 0x34], eax
mov eax, dword [edi + esi*4 + 0x24d0]
add ecx, eax
add ecx, dword [ebx + 0x34]
mov dword [ebx + 0x2c], eax
add ecx, dword [ebx + 0x28]
imul ecx, dword [edi + esi*4 + 0x2340]
mov dword [ebx + 0x38], ecx
lea ecx, [ebx + 8]
call fcn.0048cd81
mov ecx, dword [ebp - 0x3c]
push 0
call fcn.004a5753
xor edi, edi
mov esi, eax
cmp esi, edi
pop ecx
mov dword [ebx + 0x60], edi
je 0x4a5b75
mov eax, dword [esi + 0x18]
mov dword [ebx + 0x60], eax
push 4
lea eax, [ebx + 0x64]
push edi
push eax
call fcn.005117f0
add esp, 0xc
cmp esi, edi
je 0x4a5b8e
mov eax, dword [esi + 0xc]
mov dword [ebx + 0x64], eax
cmp esi, edi
mov dword [ebx + 0x68], edi
je 0x4a5b9b
mov eax, dword [esi + 0x3c]
mov dword [ebx + 0x68], eax
cmp esi, edi
mov dword [ebx + 0x6c], edi
je 0x4a5ba8
mov eax, dword [esi + 0x48]
mov dword [ebx + 0x6c], eax
cmp esi, edi
mov dword [ebx + 0x70], edi
je 0x4a5bb8
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x48]
mov dword [ebx + 0x70], eax
cmp dword [ebp - 0x44], edi
mov dword [ebp - 0x34], edi
je 0x4a5d47
push dword [ebx + 0x10]
push dword [ebp - 0x40]
call fcn.004f08dd
test eax, eax
pop ecx
pop ecx
je 0x4a5d47
mov esi, dword [ebp - 0x28]
push esi
push dword [ebx + 0xc]
call fcn.004f08dd
test eax, eax
pop ecx
pop ecx
jne 0x4a5d47
movzx eax, si
push eax
mov dword [ebx + 0xc], esi
movzx eax, byte [ebx + 0xe]
call fcn.004f07c2
movzx ecx, byte [ebx + 0xf]
add esp, 4
cmp ecx, eax
jle 0x4a5c0d
mov byte [ebx + 0xf], al
xor edi, edi
inc edi
lea ecx, [ebx + 8]
mov dword [ebx + 0x40], edi
mov dword [ebx + 0x44], edi
call fcn.0048cd81
push 0x10
mov dword [ebx + 0x48], eax
lea eax, [ebx + 0x50]
push 0
push eax
call fcn.005117f0
mov esi, dword [ebp - 0x2c]
add esp, 0xc
lea eax, [esi + 0x84]
push eax
lea eax, [ebx + 0x84]
push eax
call fcn.005123e0
mov eax, dword [esi + 0x90]
mov dword [ebx + 0x90], eax
lea eax, [esi + 0x94]
push eax
lea eax, [ebx + 0x94]
push eax
call fcn.005123e0
mov eax, dword [esi + 0xa0]
push str.Auto_Pay
mov dword [ebx + 0xa0], eax
push 0xa
lea eax, [ebx + 0xa8]
pop ecx
mov dword [ebx + 0xa4], 0x1e61
call fcn.004c3b66
add esp, 0x14
lea ecx, [ebx + 8]
mov dword [ebx + 0xb4], edi
mov dword [ebx + 0xb8], edi
call fcn.0048cd81
push dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
mov dword [ebx + 0xbc], eax
call fcn.004f05ef
mov esi, eax
lea edi, [ebx + 0xc0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
add esp, 4
push dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
movsd dword es:[edi], dword [esi]
call fcn.004f05ef
mov esi, eax
lea edi, [ebx + 0xd0]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x2c]
xor edi, edi
inc edi
mov dword [ebx + 0xe0], edi
mov eax, dword [esi + 0xe4]
mov dword [ebx + 0xe4], eax
mov eax, dword [esi + 0xe8]
mov dword [ebx + 0xe8], eax
mov dword [ebx + 0x4c], eax
add esp, 4
lea eax, [esi + 0xec]
push eax
lea eax, [ebx + 0xec]
push eax
call fcn.005123e0
mov eax, dword [esi + 0x10c]
mov dword [ebx + 0x10c], eax
mov eax, dword [esi + 0x110]
pop ecx
mov dword [ebx + 0x110], eax
mov eax, dword [esi + 0x114]
pop ecx
mov dword [ebp - 0x34], edi
mov dword [ebx + 0x114], eax
xor edi, edi
jmp 0x4a5d4a
mov esi, dword [ebp - 0x2c]
push edi
push edi
xor ecx, ecx
call fcn.0042865d
mov dword [ebx + 0x138], eax
movzx eax, byte [ebx + 0x12]
movzx edi, word [ebp - 0x54]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x38]
push eax
movzx eax, word [ebp - 0x4e]
push eax
xor eax, eax
call fcn.00460876
mov ecx, dword [ebp - 0x38]
push eax
xor eax, eax
inc eax
call fcn.00460876
push eax
movzx eax, word [ebp - 0x52]
push eax
push 0xa
pop ecx
mov eax, edi
cdq
idiv ecx
imul eax, eax, 0xa
sub edi, eax
push edi
push str._d_02d_d_d_02d_02d
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.004c53b7
lea eax, [ebp - 0x24]
add esp, 0x24
push eax
call fcn.00512906
pop ecx
push dword [ebp - 0x3c]
mov dword [ebx + 0x18], eax
push dword [ebp - 0x30]
mov eax, ebx
call fcn.0049e512
neg eax
sbb eax, eax
xor edi, edi
pop ecx
neg eax
cmp dword [ebp - 0x34], edi
pop ecx
jne 0x4a5dd3
cmp eax, edi
je 0x4a5e00
mov edx, dword [ebx + 0x78]
mov ecx, dword [ebx + 0x7c]
dec edx
dec edx
cmp ecx, edx
jge 0x4a5df1
push dword [ebp - 0x3c]
push dword [ebp - 0x30]
call fcn.004a57bb
pop ecx
pop ecx
jmp 0x4a58df
push eax
push ecx
push str.:9:InitializeCurrentPayment___FAILED:_Ran_out_of_slots_to_perform_auto_pay____NumNodes___d__bDidInjectPay___d
call fcn.004265da
add esp, 0xc
cmp esi, edi
je 0x4a5e3d
cmp dword [esi + 0x4c], 8
jne 0x4a5e3d
cmp dword [ebx + 0xb4], edi
jne 0x4a5e3d
cmp dword [ebx + 0x40], edi
jne 0x4a5e3d
push dword [ebp - 0x3c]
or dword [ebx + 0x4c], 0xffffffff
push dword [ebp - 0x30]
xor eax, eax
inc eax
mov dword [ebx + 0xb4], eax
mov dword [ebx + 0x40], eax
call fcn.004a57bb
pop ecx
pop ecx
mov dword [ebx + 0xb4], edi
mov dword [ebx + 0x40], edi
mov eax, ebx
jmp 0x4a58df