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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x481a4a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x640
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x58], edi
mov byte [ebp - 0x1c], 0
mov dword [ebp - 0x18], edi
mov al, byte [ebp + 0xf]
mov dword [ebp - 4], 1
mov byte [ebp - 0x38], al
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], edi
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
push ecx
lea ecx, [ebp - 0x1c8]
call fcn.00428ab0
lea edx, [ebp - 0x1c8]
lea ecx, [ebp - 0x24c]
push edx
mov byte [ebp - 4], 3
call fcn.00425720
mov edx, dword [ebp - 0x24c]
lea ecx, [ebp - 0x28]
push 4
lea eax, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 5
mov dword [ebp - 0x20], eax
call dword [edx + 0x18]
cmp eax, 4
jae 0x413583
push eax
lea ecx, [ebp - 0x188]
call fcn.004011f0
lea eax, [ebp - 0x188]
push 0x498628
push eax
call fcn.0044f5c5
mov ecx, dword [ebp - 0x28]
xor eax, eax
mov dword [ebp - 0x50], eax
cmp eax, 3
jl 0x4135dc
push 0x10
call fcn.00465d62
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
mov ebx, 6
cmp esi, edi
mov byte [ebp - 4], bl
je 0x4135c5
mov edi, dword [ebp - 0x28]
push 1
mov ecx, esi
call fcn.00413eb0
mov dword [esi + 8], edi
mov dword [esi + 0xc], ebx
mov dword [esi], vtable.TCampaignDocInvalidFileVersion.0
jmp 0x4135c7
xor esi, esi
lea ecx, [ebp - 0x78]
push 0x49a978
push ecx
mov byte [ebp - 4], 5
mov dword [ebp - 0x78], esi
call fcn.0044f5c5
cmp ecx, dword [eax*4 + 0x487ed0]
je 0x4135eb
inc eax
mov dword [ebp - 0x50], eax
jmp 0x41358b
lea edx, [ebp - 0x11]
lea ecx, [ebp - 0x20]
push edx
call fcn.00416d10
movsx esi, byte [ebp - 0x11]
push 4
call fcn.00465d62
mov ecx, eax
add esp, 4
mov dword [ebp - 0x24], ecx
cmp ecx, edi
mov byte [ebp - 4], 7
je 0x41361c
push esi
call fcn.004077a0
mov esi, eax
jmp 0x41361e
xor esi, esi
test esi, esi
setne bl
mov byte [ebp - 0x70], bl
mov dword [ebp - 0x6c], esi
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 8
cmp ecx, esi
je 0x41364b
mov al, byte [ebp - 0x1c]
test al, al
je 0x413646
test ecx, ecx
je 0x413646
push 1
call fcn.00415cb0
mov byte [ebp - 0x1c], bl
jmp 0x413653
test bl, bl
je 0x413653
mov byte [ebp - 0x1c], 1
test esi, esi
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 5
jne 0x413689
push str.Allocation_failure.
lea ecx, [ebp - 0x164]
call fcn.00422510
lea eax, [ebp - 0x164]
push 0x498d18
push eax
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.TAllocationFailure.0
call fcn.0044f5c5
mov cl, byte [ebp + 0xf]
push 0
mov byte [ebp - 0x48], cl
lea ecx, [ebp - 0x48]
call fcn.004015d0
mov dl, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
mov byte [ebp - 0x68], dl
call fcn.004015d0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 0xa
call fcn.0040b130
mov eax, dword [ebp - 0x44]
test eax, eax
jne 0x4136c4
xor esi, esi
jmp 0x4136ca
mov ecx, dword [ebp - 0x40]
lea esi, [ecx + eax]
lea ecx, [ebp - 0x48]
call fcn.0040b130
mov edx, dword [ebp - 0x44]
push esi
push edx
lea ecx, [ebp - 0x48]
call fcn.004155e0
lea eax, [ebp - 0x54]
lea ecx, [ebp - 0x20]
push eax
call fcn.00416d90
mov edi, dword [ebp - 0x54]
lea ecx, [ebp - 0x48]
push edi
call fcn.0040ad70
lea ecx, [ebp - 0x48]
call fcn.0040b130
mov ebx, dword [ebp - 0x44]
test edi, edi
jbe 0x413743
cmp edi, 0x200
mov esi, edi
jb 0x413715
mov esi, 0x200
lea ecx, [ebp - 0x44c]
push esi
push ecx
lea ecx, [ebp - 0x20]
call fcn.0040d620
lea edx, [ebp + esi - 0x44c]
push ebx
lea eax, [ebp - 0x44c]
push edx
push eax
call fcn.0040d660
add esp, 0xc
add ebx, esi
sub edi, esi
jmp 0x413702
lea ecx, [ebp - 0x68]
call fcn.0040b130
mov esi, dword [ebp - 0x64]
lea ecx, [ebp - 0x68]
call fcn.004156d0
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.004155e0
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00416d90
mov edi, dword [ebp - 0x24]
lea ecx, [ebp - 0x68]
push edi
call fcn.0040ad70
lea ecx, [ebp - 0x68]
call fcn.0040b130
mov ebx, dword [ebp - 0x64]
test edi, edi
jbe 0x4137c4
cmp edi, 0x200
mov esi, edi
jb 0x413796
mov esi, 0x200
lea edx, [ebp - 0x64c]
push esi
push edx
lea ecx, [ebp - 0x20]
call fcn.0040d620
lea eax, [ebp + esi - 0x64c]
push ebx
lea ecx, [ebp - 0x64c]
push eax
push ecx
call fcn.0040d660
add esp, 0xc
add ebx, esi
sub edi, esi
jmp 0x413783
lea edx, [ebp - 0x11]
lea ecx, [ebp - 0x20]
push edx
call fcn.00416d10
mov cl, byte [ebp - 0x11]
test cl, cl
lea ecx, [ebp - 0x48]
setne al
push ecx
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 0x24], al
call fcn.00407b80
mov ecx, dword [ebp - 0x18]
lea edx, [ebp - 0x68]
push edx
call fcn.00407bb0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00407be0
cmp dword [ebp - 0x28], 5
jl 0x41381e
lea ecx, [ebp - 0x11]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00416d10
movsx eax, byte [ebp - 0x11]
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00407c10
mov ecx, dword [ebp - 0x18]
call fcn.00407db0
mov ecx, dword [0x4a9498]
lea edx, [ebp - 0x4b]
shl eax, 4
add eax, ecx
push edx
lea ecx, [ebp - 0x104]
mov esi, dword [eax + 8]
call fcn.004155c0
lea eax, [ebp - 0x49]
lea ecx, [ebp - 0x11]
push eax
push ecx
push esi
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0xb
mov dword [ebp - 0xf4], 0
mov byte [ebp - 0x11], 0
call fcn.00415b50
lea edx, [ebp - 0x4a]
lea ecx, [ebp - 0xd8]
push edx
mov byte [ebp - 4], 0xc
mov dword [ebp - 0xe0], 0
mov dword [ebp - 0xdc], 1
call fcn.004155c0
xor eax, eax
mov byte [ebp - 0xc8], 0
mov dword [ebp - 0xc4], eax
mov byte [ebp - 0xc0], al
mov dword [ebp - 0xbc], eax
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 0xf
call fcn.00407e50
mov byte [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 0x10
call fcn.00407db0
mov ecx, dword [0x4a9498]
shl eax, 4
add eax, ecx
mov ecx, dword [ebp - 0x34]
test ecx, ecx
mov esi, dword [eax + 8]
jne 0x4138f0
xor eax, eax
jmp 0x4138f8
mov eax, dword [ebp - 0x30]
sub eax, ecx
sar eax, 7
cmp eax, esi
jae 0x41391c
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x38]
call fcn.00416160
lea ecx, [ebp - 0x104]
sub esi, eax
push ecx
push esi
push edi
lea ecx, [ebp - 0x38]
call fcn.00416180
jmp 0x41393d
lea ecx, [ebp - 0x38]
call fcn.00416160
cmp esi, eax
jae 0x41393d
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
shl esi, 7
add esi, ecx
push edx
push esi
lea ecx, [ebp - 0x38]
call fcn.00416540
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 0x15
call fcn.004469b0
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 0x14
call fcn.0040afa0
lea ecx, [ebp - 0xc8]
mov byte [ebp - 4], 0x13
call fcn.0040afa0
push 1
lea ecx, [ebp - 0xd8]
mov byte [ebp - 4], 0x12
call fcn.004015d0
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0x11
call fcn.00415ba0
push 1
lea ecx, [ebp - 0x104]
mov byte [ebp - 4], 0xa
call fcn.004015d0
xor esi, esi
mov ecx, dword [ebp - 0x18]
call fcn.00407db0
mov edx, dword [0x4a9498]
shl eax, 4
add eax, edx
cmp esi, dword [eax + 8]
jae 0x4139cf
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x34]
push ecx
mov ecx, esi
shl ecx, 7
add ecx, eax
call fcn.004122d0
inc esi
jmp 0x41399d
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 9
call fcn.004015d0
push 1
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 5
call fcn.004015d0
lea ecx, [ebp - 0x24c]
mov dword [ebp - 4], 3
call fcn.00425f10
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 2
call fcn.00428be0
mov byte [ebp - 4], 0x18
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00407db0
mov edx, dword [0x4a9498]
shl eax, 4
add eax, edx
cmp ebx, dword [eax + 8]
jae 0x413c03
mov ecx, dword [ebp - 0x34]
mov esi, ebx
shl esi, 7
add esi, ecx
mov dword [ebp - 0x24], esi
mov eax, dword [esi + 8]
test eax, eax
je 0x413bac
mov edx, dword [esi + 0x10]
push edx
call fcn.00465d62
add esp, 4
mov dword [ebp - 0x3c], eax
test eax, eax
setne cl
mov byte [ebp - 0x40], cl
test eax, eax
mov byte [ebp - 4], 0x19
jne 0x413a90
push str.Allocation_failure.
lea ecx, [ebp - 0x144]
call fcn.00422510
lea edx, [ebp - 0x144]
push 0x498d18
push edx
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.TAllocationFailure.0
call fcn.0044f5c5
mov ecx, dword [ebp + 0xc]
mov edi, dword [esi + 0x10]
push edi
push eax
mov edx, dword [ecx]
call dword [edx + 0x34]
cmp eax, dword [esi + 0x10]
jae 0x413ae7
push 8
call fcn.00465d62
mov esi, eax
add esp, 4
mov dword [ebp + 0xc], esi
test esi, esi
mov byte [ebp - 4], 0x1a
je 0x413aca
push 1
mov ecx, esi
call fcn.0046afb1
mov dword [esi], vtable.TCampaignDocLoadFailure.0
jmp 0x413acc
xor esi, esi
lea eax, [ebp - 0x84]
push 0x49a968
push eax
mov byte [ebp - 4], 0x19
mov dword [ebp - 0x84], esi
call fcn.0044f5c5
push 0x138
mov byte [ebp - 4], 0x1b
call fcn.00465d62
mov edi, eax
add esp, 4
mov dword [ebp - 0x54], edi
test edi, edi
mov byte [ebp - 4], 0x1c
je 0x413b31
mov ecx, dword [ebp - 0x50]
push 1
push ecx
lea edx, [ebp - 0x40]
sub esp, 8
mov ecx, esp
mov dword [ebp - 0x28], esp
push edx
call fcn.0040bec0
mov eax, dword [esi + 0x10]
mov ecx, edi
push eax
push esi
call fcn.00410b00
test eax, eax
je 0x413b31
add eax, 0x10
jmp 0x413b33
xor eax, eax
test eax, eax
setne dl
mov byte [ebp - 0x70], dl
mov dword [ebp - 0x6c], eax
test eax, eax
mov byte [ebp - 4], 0x1d
jne 0x413b71
push str.Allocation_failure.
lea ecx, [ebp - 0x124]
call fcn.00422510
lea ecx, [ebp - 0x124]
push 0x498d18
push ecx
mov dword [ebp - method.std::runtime_error.virtual_0], vtable.TAllocationFailure.0
call fcn.0044f5c5
sub esp, 8
mov byte [ebp - 0x70], 0
mov ecx, esp
mov dword [ebp - 0x54], esp
push ebx
mov byte [ecx], dl
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x1c]
call fcn.00415b30
mov ecx, eax
call fcn.00407c40
mov al, byte [ebp - 0x40]
mov dword [ebp - 4], 0x18
test al, al
je 0x413bac
mov edx, dword [ebp - 0x3c]
push edx
call fcn.00465d8b
add esp, 4
inc ebx
jmp 0x413a12
xor ebx, ebx
mov ecx, dword [ebp - 0x18]
call fcn.00407db0
mov edx, dword [0x4a9498]
shl eax, 4
add eax, edx
cmp ebx, dword [eax + 8]
jae 0x413d3a
mov ecx, dword [ebp - 0x34]
mov esi, ebx
shl esi, 7
add esi, ecx
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00407d60
mov ecx, dword [esi + 0x24]
push ecx
mov ecx, eax
call fcn.004097d0
mov eax, dword [esi + 8]
test eax, eax
je 0x413d34
xor edi, edi
mov ecx, dword [ebp - 0x18]
call fcn.00407db0
mov edx, dword [0x4a9498]
shl eax, 4
add eax, edx
cmp edi, dword [eax + 8]
jae 0x413c90
cmp edi, ebx
je 0x413c8d
mov eax, dword [ebp - 0x34]
mov edx, edi
shl edx, 7
mov ecx, dword [edx + eax + 8]
test ecx, ecx
je 0x413c8d
mov eax, dword [esi + 0x18]
cmp byte [eax + edi], 0
je 0x413c8d
mov ecx, dword [ebp - 0x18]
push 1
push edi
push ebx
call fcn.00407cd0
inc edi
jmp 0x413c4c
mov ecx, dword [ebp - 0x18]
push ebx
call fcn.00407d60
mov ecx, dword [esi + 0x28]
mov edi, eax
push ecx
mov ecx, edi
call fcn.00409800
lea edx, [esi + 0x2c]
mov ecx, edi
push edx
call fcn.00409830
mov eax, dword [esi + 0x40]
test eax, eax
je 0x413cd6
mov cl, byte [esi + 0x3c]
sub esp, 8
mov eax, esp
mov dword [ebp + 0xc], esp
mov byte [eax], cl
mov ecx, dword [esi + 0x40]
mov byte [esi + 0x3c], 0
mov dword [eax + 4], ecx
mov ecx, edi
call fcn.00409980
mov eax, dword [esi + 0x48]
test eax, eax
je 0x413cfb
mov dl, byte [esi + 0x44]
sub esp, 8
mov eax, esp
mov dword [ebp + 0xc], esp
mov byte [eax], dl
mov ecx, dword [esi + 0x48]
mov byte [esi + 0x44], 0
mov dword [eax + 4], ecx
mov ecx, edi
call fcn.00409b40
lea eax, [esi + 0x4c]
mov ecx, edi
push eax
call fcn.00409d00
mov eax, dword [esi + 0x7c]
test eax, eax
je 0x413d34
mov cl, byte [esi + 0x78]
sub esp, 8
mov eax, esp
mov dword [ebp + 0xc], esp
push ebx
mov byte [eax], cl
mov byte [esi + 0x78], 0
mov esi, dword [esi + 0x7c]
lea ecx, [ebp - 0x1c]
mov dword [eax + 4], esi
call fcn.00415b30
mov ecx, eax
call fcn.00407d00
inc ebx
jmp 0x413c05
mov ebx, dword [ebp + 8]
lea edx, [ebp - 0x50]
lea eax, [ebp - 0x1c]
push edx
push eax
push ebx
mov dword [ebp - 4], 2
call fcn.00416740
mov edx, dword [ebp - 0x58]
add esp, 0xc
or edx, 1
mov dword [ebp - 0x58], edx
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x34]
cmp esi, eax
mov edi, eax
mov dword [ebp + 0xc], esi
je 0x413de1
mov al, byte [esi + 0x78]
mov byte [ebp - 4], 0x26
test al, al
je 0x413d85
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x413d85
mov edx, dword [ecx]
push 1
call dword [edx]
mov al, byte [esi + 0x44]
mov byte [ebp - 4], 0x25
test al, al
je 0x413d9e
mov ecx, dword [esi + 0x48]
test ecx, ecx
je 0x413d9e
push 1
call fcn.0040b110
lea ecx, [esi + 0x3c]
mov byte [ebp - 4], 0x24
call fcn.0040afa0
push 1
lea ecx, [esi + 0x2c]
mov byte [ebp - 4], 0x23
call fcn.004015d0
lea ecx, [esi + 0x14]
mov byte [ebp - 4], 0x22
call fcn.00415ba0
push 1
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.004015d0
add esi, 0x80
cmp esi, edi
mov dword [ebp + 0xc], esi
jne 0x413d6d
mov esi, dword [ebp - 0x34]
push esi
call fcn.00465d8b
mov cl, byte [ebp - 0x1c]
add esp, 4
xor eax, eax
test cl, cl
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], al
je 0x413e16
mov esi, dword [ebp - 0x18]
cmp esi, eax
je 0x413e16
mov ecx, esi
call fcn.00407a10
push esi
call fcn.00465d8b
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret