Function at 0x40fec0
Capabilities:
Contain obfuscated stackstrings
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x16c
mov dword [esp + 0x44], eax
lea eax, [esp + 0x58]
mov dword [esp], eax
mov dword [esp + 0x48], edx
call fcn.004199a0
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x58]
sub eax, dword [edx + 0x2ac]
cmp eax, 0x3c
jg 0x410491
mov esi, dword [esp + 0x44]
add esi, 0x238
mov dword [esp], esi
call fcn.00460dd0
test eax, eax
jne 0x410776
mov eax, dword [esp + 0x44]
mov edi, dword [eax + 0x280]
mov dword [esp], edi
call fcn.0047a2e0
mov edx, dword [esp + 0x44]
mov ebp, eax
shr ebp, 1
lea eax, [ebp + 4]
mov dword [edx + 0x2a8], eax
lea eax, [ebp + 5]
test al, 3
je 0x40ff3f
and eax, 0xfffffffc
add eax, 4
mov dword [esp + 4], 1
mov dword [esp], eax
call fcn.0047a380
mov dword [esp + 4], edi
mov dword [esp + 8], 0x2a
mov ebx, eax
mov dword [esp], eax
call fcn.00419310
movzx edi, byte [ebx + 0x29]
mov eax, dword [esp + 0x44]
mov dword [esp + 8], edi
sub ebp, edi
mov eax, dword [eax + 0x280]
mov dword [esp + 0x3c], eax
add eax, 0x54
mov dword [esp + 4], eax
lea eax, [ebx + 0x2a]
mov dword [esp], eax
call fcn.00419310
mov ecx, dword [esp + 0x44]
lea edx, [edi + 0x2a]
mov eax, dword [ecx + 0x1c8]
lea ecx, [ebp - 0x2a]
mov dword [ebx + edi + 0x2a], eax
movzx eax, byte [ebx + 0x29]
mov edi, dword [esp + 0x44]
add eax, 4
mov byte [ebx + 0x29], al
movzx eax, al
mov dword [esp + 8], ecx
mov ecx, dword [edi + 0x280]
lea eax, [ebx + eax + 0x2a]
mov dword [esp], eax
lea edx, [ecx + edx*2]
mov dword [esp + 4], edx
call fcn.00419310
mov eax, dword [edi + 0x29c]
add dword [edi + 0x1c8], 1
mov dword [esp], eax
call fcn.0047a350
mov dword [edi + 0x29c], ebx
add edi, 0x23c
mov dword [esp], edi
mov dword [esp + 0x4c], edi
call fcn.00463af0
test eax, eax
jne 0x41077b
mov dword [esp], esi
call fcn.004603e0
test eax, eax
jne 0x410780
mov eax, dword [esp + 0x44]
mov dword [esp + 4], 1
mov eax, dword [eax + 0x2a4]
mov dword [esp + 0x38], eax
add eax, 2
shl eax, 5
mov dword [esp], eax
call fcn.0047a380
test eax, eax
mov ebp, eax
je 0x4106e2
mov eax, dword [esp + 0x44]
mov edx, ebp
mov ecx, dword [eax + 0x2a8]
mov eax, dword [eax + 0x29c]
call fcn.00401d40
mov ecx, dword [esp + 0x44]
mov eax, dword [ecx + 0x2a4]
test eax, eax
jne 0x41038e
mov ebx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov eax, dword [ebx + 0x290]
mov dword [edx], eax
mov eax, edx
mov ecx, dword [ebx + 0x240]
mov edx, ebx
mov ebx, dword [esp + 0x48]
mov edi, dword [esp + 0x44]
mov dword [ebx + 4], ecx
mov ecx, dword [edx + 0x244]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0x248]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x24c]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x250]
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0x254]
mov dword [eax + 0x18], ecx
mov ecx, dword [edx + 0x258]
add edx, 0x240
mov dword [eax + 0x1c], ecx
mov edx, dword [edx + 0x1c]
mov dword [eax + 0x20], edx
mov eax, dword [edi + 0x294]
mov edx, edi
add edx, 0x260
mov dword [ebx + 0x44], eax
mov eax, dword [edi + 0x298]
mov dword [ebx + 0x48], eax
mov ecx, dword [edi + 0x260]
mov dword [ebx + 0xa0], ecx
mov ecx, dword [edi + 0x264]
mov dword [ebx + 0xa4], ecx
mov ecx, dword [edi + 0x268]
mov dword [ebx + 0xa8], ecx
mov ecx, dword [edi + 0x26c]
mov dword [ebx + 0xac], ecx
mov ecx, dword [edi + 0x270]
mov dword [ebx + 0xb0], ecx
mov ecx, dword [edi + 0x274]
mov dword [ebx + 0xb4], ecx
mov ecx, dword [edi + 0x278]
mov dword [ebx + 0xb8], ecx
mov edx, dword [edx + 0x1c]
mov dword [ebx + 0xbc], edx
mov eax, dword [edi + 0x2a8]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x29c]
mov dword [esp], eax
call fcn.00419220
mov dword [ebx + 0x240], eax
mov eax, dword [edi + 0x2a4]
mov dword [esp + 0x34], eax
add eax, 1
mov dword [ebx + 0x244], eax
mov eax, dword [edi + 0x288]
test eax, eax
je 0x410198
mov dword [esp], eax
call fcn.00471b68
mov edx, dword [esp + 0x48]
mov dword [edx + 0x224], eax
mov ebx, dword [esp + 0x4c]
mov dword [esp], ebx
call fcn.00462840
test eax, eax
jne 0x4106dd
call fcn.0045fb60
mov eax, dword [ebp]
mov edx, dword [esp + 0x48]
mov ecx, dword [esp + 0x48]
mov dword [edx + 0x24], eax
mov eax, dword [ebp + 4]
add ecx, 0x24
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [ecx + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [ecx + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [ecx + 0x1c], eax
xor eax, eax
nop
mov edx, dword [ebp + eax*4]
bswap edx
mov dword [ecx + eax*4], edx
add eax, 1
cmp eax, 8
jne 0x4101f0
mov dword [esp], ebp
call fcn.0047a350
mov edx, dword [esp + 0x48]
mov eax, edx
add eax, 0x50
mov dword [edx + 0x4c], 0
mov dword [esp + 8], 0x30
mov dword [esp + 4], str.000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000
mov dword [esp], eax
call fcn.00419310
cmp byte [0x4a0b61], 0
jne 0x4102b2
mov eax, dword [esp + 0x48]
call fcn.00401d90
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
add dword [0x4a2d9c], 1
mov byte [edx + 0x23c], 1
mov dword [edx + 0x208], eax
mov eax, dword [0x49f18c]
mov byte [edx + 0x21c], 0
mov byte [edx + 0x2a8], 0x47
mov dword [edx + 0x24c], eax
add eax, 1
mov dword [0x49f18c], eax
mov eax, dword [0x4a01f8]
mov dword [edx + 0x248], eax
mov eax, dword [esp + 0x48]
xor edx, edx
call fcn.00402970
mov eax, dword [esp + 0x48]
add eax, 0x20c
mov dword [esp], eax
call fcn.004199a0
add esp, 0x16c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [esp + 0x48]
mov dword [esp + 4], pe_nt_image_headers32
mov dword [esp], edx
call fcn.00419220
cmp byte [0x4a0b61], 0
mov ebx, eax
je 0x410381
cmp byte [0x4a2d14], 0
jne 0x4102f4
cmp byte [0x4a0b60], 0
jne 0x4102f4
cmp dword [0x47f720], 3
jle 0x410631
lea edi, [esp + 0x60]
mov dword [esp + 0xc], ebx
mov dword [esp + 8], str.Generated_GBT_header__s
mov dword [esp + 4], 0x100
mov dword [esp], edi
mov dword [esp + 0x40], edi
call fcn.00471bd0
mov dword [esp + 4], edi
mov dword [esp], 4
call fcn.0042ace0
cmp byte [0x4a0b61], 0
je 0x410381
cmp byte [0x4a2d14], 0
jne 0x410347
cmp byte [0x4a0b60], 0
je 0x410631
mov edx, dword [esp + 0x48]
mov edi, dword [esp + 0x40]
mov eax, dword [edx + 0x240]
mov dword [esp + 8], str.Work_coinbase__s
mov dword [esp + 4], 0x100
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.00471bd0
mov dword [esp + 4], edi
mov dword [esp], 4
call fcn.0042ace0
mov dword [esp], ebx
call fcn.0047a350
jmp 0x41023a
mov ebx, dword [esp + 0x44]
shl eax, 5
lea edx, [ebp + 0x20]
mov ecx, dword [ebx + 0x2a0]
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.0047a3a8
mov edi, dword [ebx + 0x2a4]
mov dword [esp + 0x30], edi
add edi, 1
cmp edi, 1
jle 0x41006d
lea ebx, [esp + 0x60]
test edi, 1
mov dword [esp + 0x40], ebx
jne 0x41044c
mov esi, ebp
xor ebx, ebx
mov edx, dword [esp + 0x40]
mov eax, esi
mov ecx, 0x40
add esi, 0x40
call fcn.00401d40
mov eax, ebx
mov edx, dword [esp + 0x60]
sar eax, 1
add ebx, 2
shl eax, 5
add eax, ebp
cmp ebx, edi
mov dword [eax], edx
mov edx, dword [esp + 0x64]
mov dword [eax + 4], edx
mov edx, dword [esp + 0x68]
mov dword [eax + 8], edx
mov edx, dword [esp + 0x6c]
mov dword [eax + 0xc], edx
mov edx, dword [esp + 0x70]
mov dword [eax + 0x10], edx
mov edx, dword [esp + 0x74]
mov dword [eax + 0x14], edx
mov edx, dword [esp + 0x78]
mov dword [eax + 0x18], edx
mov edx, dword [esp + 0x7c]
mov dword [eax + 0x1c], edx
jl 0x4103d8
mov eax, edi
shr eax, 0x1f
add edi, eax
sar edi, 1
cmp edi, 1
jle 0x41006d
test edi, 1
je 0x4103d4
lea edx, [edi - 1]
mov eax, edi
shl edx, 5
add edi, 1
add edx, ebp
mov ecx, dword [edx]
shl eax, 5
add eax, ebp
mov dword [eax], ecx
mov ecx, dword [edx + 4]
mov dword [eax + 4], ecx
mov ecx, dword [edx + 8]
mov dword [eax + 8], ecx
mov ecx, dword [edx + 0xc]
mov dword [eax + 0xc], ecx
mov ecx, dword [edx + 0x10]
mov dword [eax + 0x10], ecx
mov ecx, dword [edx + 0x14]
mov dword [eax + 0x14], ecx
mov ecx, dword [edx + 0x18]
mov dword [eax + 0x18], ecx
mov edx, dword [edx + 0x1c]
mov dword [eax + 0x1c], edx
jmp 0x4103d4
call fcn.00459600
test eax, eax
mov ebx, eax
je 0x410785
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x54]
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], 1
mov eax, dword [edx + 0x80]
mov dword [esp + 0xc], eax
mov eax, dword [edx + 0x88]
mov dword [esp + 8], eax
mov eax, dword [edx + 0x84]
mov dword [esp], ebx
mov dword [esp + 4], eax
call fcn.004199e0
test eax, eax
mov esi, eax
je 0x41064b
call fcn.0040e4d0
mov ecx, esi
mov edx, eax
mov edi, eax
mov eax, dword [esp + 0x44]
call fcn.00408050
mov ecx, dword [esp + 0x44]
add dword [0x4a2c3c], 1
add dword [ecx + 0x54], 1
test al, al
je 0x41059b
cmp byte [0x4a0b61], 0
je 0x41058a
cmp byte [0x4a2d14], 0
jne 0x410542
cmp byte [0x4a0b60], 0
je 0x4106ab
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [esp + 8], str.Successfully_retrieved_and_updated_GBT_from_pool__u__s
mov dword [esp + 4], 0x100
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.00471bd0
mov eax, dword [esp + 0x40]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov eax, dword [esp + 0x44]
add eax, 0x68
mov dword [esp], eax
call fcn.004199a0
jmp 0x410602
cmp byte [0x4a0b61], 0
je 0x410602
cmp byte [0x4a2d14], 0
jne 0x4105ba
cmp byte [0x4a0b60], 0
je 0x4106bd
mov edx, dword [esp + 0x44]
lea ecx, [esp + 0x60]
mov dword [esp + 0x40], ecx
mov eax, dword [edx + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [esp + 8], str.Successfully_retrieved_but_FAILED_to_decipher_GBT_from_pool__u__s
mov dword [esp + 4], 0x100
mov dword [esp], ecx
mov dword [esp + 0xc], eax
call fcn.00471bd0
mov eax, dword [esp + 0x40]
mov dword [esp], 4
mov dword [esp + 4], eax
call fcn.0042ace0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x41061c
sub eax, 1
test eax, eax
mov dword [esi + 4], eax
jne 0x41061c
mov dword [esp], esi
call fcn.0045a6d0
mov dword [esp], edi
call fcn.00403150
mov dword [esp], ebx
call fcn.004595f8
jmp 0x40fef5
cmp dword [0x47f720], 3
jle 0x410381
lea edi, [esp + 0x60]
mov dword [esp + 0x40], edi
jmp 0x410347
cmp byte [0x4a0b61], 0
je 0x410624
cmp byte [0x4a2d14], 0
jne 0x410666
cmp byte [0x4a0b60], 0
je 0x4106cf
mov edx, dword [esp + 0x44]
lea edi, [esp + 0x60]
mov eax, dword [edx + 0x84]
mov dword [esp + 0x10], eax
mov eax, dword [edx]
mov dword [esp + 8], str.FAILED_to_update_GBT_from_pool__u__s
mov dword [esp + 4], 0x100
mov dword [esp], edi
mov dword [esp + 0xc], eax
call fcn.00471bd0
mov dword [esp + 4], edi
mov dword [esp], 4
call fcn.0042ace0
jmp 0x410624
cmp dword [0x47f720], 3
jle 0x41058a
jmp 0x410542
cmp dword [0x47f720], 3
jg 0x4105ba
jmp 0x410602
cmp dword [0x47f720], 3
jg 0x410666
jmp 0x410624
call fcn.0047aa32
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x6c696146
mov dword [esp + 0x64], 0x74206465
mov dword [esp + 0x68], 0x6163206f
mov dword [esp + 0x6c], 0x636f6c6c
mov dword [esp + 0x70], 0x72656d20
mov dword [esp + 0x74], 0x5f656c6b
mov dword [esp + 0x78], 0x68736168
mov dword [esp + 0x7c], 0x206e6920
mov dword [esp + 0x80], 0x62675f5f
mov dword [esp + 0x84], 0x656d5f74
mov dword [esp + 0x88], 0x656c6b72
mov dword [esp + 0x8c], 0x746f6f72
mov byte [esp + 0x90], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call fcn.0042ace0
mov dword [esp], 1
call fcn.00404a60
call fcn.0047aad4
call fcn.0047a9fc
call fcn.0047aa68
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x4c525543
mov dword [esp + 0x64], 0x696e6920
mov dword [esp + 0x68], 0x6c616974
mov dword [esp + 0x6c], 0x74617369
mov dword [esp + 0x70], 0x206e6f69
mov dword [esp + 0x74], 0x6c696166
mov dword [esp + 0x78], 0x69206465
mov dword [esp + 0x7c], 0x7075206e
mov dword [esp + 0x80], 0x65746164
mov dword [esp + 0x84], 0x7462675f
mov byte [esp + 0x88], 0
jmp 0x41075a